97超级碰碰碰久久久_精品成年人在线观看_精品国内女人视频免费观_福利一区二区久久

Linux mysql5.7.13安裝教程

時(shí)間:2022-06-28 06:50:29 休閑雜談 我要投稿
  • 相關(guān)推薦

Linux mysql5.7.13安裝教程

  本文實(shí)例為大家分享了Linux mysql5.7.13安裝教程,供大家參考,具體內(nèi)容如下

  1、準(zhǔn)備

  cmake-3.6.0.tar.gz

  bison-3.0.4.tar.gz

  mysql-5.7.13.tar.gz (http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13.tar.gz)

  2、安裝cmake 和 bison

  首先可以查看下是否安裝了 cmake

  # rpm -qa |grep cmake # tar zxvf cmake-3.6.0.tar.gz# cd cmake-3.6.0# ./bootstrap# make && make install # tar zxvf bison-3.0.4.tar.gz# cd bison-3.0.4# ./configure# make && make install

  3、安裝Mysql

  [root@localhost src]# tar -zxvf mysql-5.7.13.tar.gz[root@localhost src]# cd mysql-5.7.13[root@localhost mysql-5.7.13]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock -DDEFAULT_CHARSET=gbk -DDEFAULT_COLLATION=gbk_chinese_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/data/mysqldb -DMYSQL_TCP_PORT=3306 -DENABLE_DOWNLOADS=1 ...CMake Error at cmake/boost.cmake:81 (MESSAGE): You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=This CMake script will look for boost in. If it is not there, it will download and unpack it (in that directory) for you. If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80Call Stack (most recent call first): cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST) CMakeLists.txt:451 (INCLUDE)-- Configuring incomplete, errors occurred!



  注:重新運(yùn)行配置,需要?jiǎng)h除CMakeCache.txt文件

  解決:

 。1)在預(yù)編譯時(shí)添加相應(yīng)的選項(xiàng):cmake -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost

 。2)或者下載一個(gè)boost包,放到/usr/local/boost目錄下,然后在cmake后面加選項(xiàng)-DWITH_BOOST=/usr/local/boost

  [root@localhost mysql-5.7.13]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock -DDEFAULT_CHARSET=gbk -DDEFAULT_COLLATION=gbk_chinese_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/data/mysqldb -DMYSQL_TCP_PORT=3306 -DENABLE_DOWNLOADS=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost .... CMake Error at cmake/readline.cmake:64 (MESSAGE): Curses library not found. Please install appropriate package, remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel. Call Stack (most recent call first): cmake/readline.cmake:107 (FIND_CURSES) cmake/readline.cmake:181 (MYSQL_USE_BUNDLED_EDITLINE) CMakeLists.txt:479 (MYSQL_CHECK_EDITLINE) -- Configuring incomplete, errors occurred! See also "/usr/local/src/mysql-5.7.13/CMakeFiles/CMakeOutput.log". See also "/usr/local/src/mysql-5.7.13/CMakeFiles/CMakeError.log".

  解決:

 。1)安裝ncurses-devel

  yum -y install ncurses-devel

  (2)刪除CMakeCache.txt

  rm CMakeCache.txt

 。3)重新cmake

  復(fù)制代碼 代碼如下:[root@localhost mysql-5.7.13]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=mysql.mysql -DDEFAULT_CHARSET=gbk -DDEFAULT_COLLATION=gbk_chinese_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/data/mysqldb -DMYSQL_TCP_PORT=3306 -DENABLE_DOWNLOADS=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost

  復(fù)制代碼 代碼如下:[root@localhost mysql-5.7.13]# make[root@localhost mysql-5.7.13]# make install

  精彩專題分享:mysql不同版本安裝教程 mysql5.7各版本安裝教程

  以上就是本文的全部內(nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持。

【Linux mysql5.7.13安裝教程】相關(guān)文章:

U盤安裝RedHat Linux的詳細(xì)教程06-28

如何安裝linux操作系統(tǒng)圖文教程06-28

如何在Linux操作系統(tǒng)下安裝迅雷極速版教程06-29

Linux系統(tǒng)基礎(chǔ)教程:網(wǎng)卡安裝一般步驟簡介06-28

openoffice安裝教程04-21

華為ensp安裝教程 華為模擬器安裝使用教程07-11

教你安裝cpu的教程06-29

網(wǎng)店系統(tǒng)安裝教程06-29

電腦的系統(tǒng)安裝教程06-29

安裝驅(qū)動(dòng)的簡單教程06-28