做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

centos5.9安裝mysql5.5.31_MySQL

來源:懂視網(wǎng) 責編:小采 時間:2020-11-09 18:34:54
文檔

centos5.9安裝mysql5.5.31_MySQL

centos5.9安裝mysql5.5.31_MySQL:CentOS bitsCN.com centos 5.9安裝mysql 5.5.31 在linux下安裝安裝mysql,會出現(xiàn)各種各樣的依賴關(guān)系,在centos下安裝mysql出現(xiàn)各種依賴關(guān)系[root@localhost]# tar xzvf cmake-2.8.4.tar.gz [root@localhost src]
推薦度:
導(dǎo)讀centos5.9安裝mysql5.5.31_MySQL:CentOS bitsCN.com centos 5.9安裝mysql 5.5.31 在linux下安裝安裝mysql,會出現(xiàn)各種各樣的依賴關(guān)系,在centos下安裝mysql出現(xiàn)各種依賴關(guān)系[root@localhost]# tar xzvf cmake-2.8.4.tar.gz [root@localhost src]

CentOS

bitsCN.com

centos 5.9安裝mysql 5.5.31

在linux下安裝安裝mysql,會出現(xiàn)各種各樣的依賴關(guān)系,在centos下安裝mysql出現(xiàn)各種依賴關(guān)系

[root@localhost]# tar xzvf cmake-2.8.4.tar.gz

[root@localhost src]# cd cmake-2.8.4

[root@localhost cmake-2.8.4]# ./configure

Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify one using environment variable CC. See cmake_bootstrap.log for compilers attempted.

報錯:缺少C的編譯器。

安裝gcc編譯器

可以從Linux系統(tǒng)的安裝盤中安裝,也可以簡單地用yum安裝

[root@localhost ~]# yum install gcc

繼續(xù)cmake的安裝

[root@localhost cmake-2.8.4]# ./configure

C compiler on this system is: cc

Error when bootstrapping CMake: Cannot find appropriate C++ compiler on this system. Please specify one using environment variable CXX. See cmake_bootstrap.log for compilers attempted.

再次報錯:缺少C++編譯器。

[root@localhost ~]# yum install gcc-c++

重復(fù)上面的操作

[root@localhost cmake-2.8.4]# ./configue

[root@localhost cmake-2.8.4]# make

[root@localhost cmake-2.8.4]# make install

開始正式安裝Mysql

添加mysql用戶和用戶組

[root@localhost ~]# groupadd mysql

[root@localhost ~]# useradd -r -g mysql mysql

下載mysql的源碼包mysql-5.5.31.tar.gz

[root@localhost ~]# tar xzvf mysql-5.5.31.tar.gz

[root@localhost ~]# cd mysql-5.5.31

cmake運行

[root@localhost mysql-5.5.31]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci

-- Running cmake version 2.8.10.2

-- MySQL 5.5.31

-- Packaging as: mysql-5.5.31-Linux-x86_64

-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

CMake Error at cmake/readline.cmake:83 (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:127 (FIND_CURSES)

cmake/readline.cmake:217 (MYSQL_USE_BUNDLED_LIBEDIT)

CMakeLists.txt:269 (MYSQL_CHECK_READLINE)

-- Configuring incomplete, errors occurred!

缺少Curses包,解決辦法:remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.

在CentOS下需要安裝ncurses-devel

[root@localhost mysql-5.5.31]# yum install ncurses-devel

安裝完畢,重新cmake運行

[root@localhost mysql-5.5.31]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci

....................................................................

-- Performing Test HAVE_PEERCRED - Success

Warning: Bison executable not found in PATH

-- Configuring done

-- Generating done

-- Build files have been written to: /root/mysql-5.5.31

有一個警告,缺少Bison就安裝一下

[root@localhost mysql-5.5.31]# yum install bison

刪除CMakeCache.txt,重新cmake。接下來開始編譯安裝,時間有點稍長,可以干點別的看看財經(jīng)新聞

[root@localhost mysql-5.5.31]# make && make install

修改目錄權(quán)限

[root@localhost ~]# cd /usr/local/mysql

[root@localhost mysql]# chown -R root:mysql .

[root@localhost mysql]# chown -R mysql:mysql data

創(chuàng)建系統(tǒng)數(shù)據(jù)庫的表

[root@localhost scripts]# ./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data

cp配置文件

cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf

啟動mysql

/usr/local/mysql/bin/mysqld_safe --user=mysql &

修改環(huán)境變量

[root@localhost ~]# vi .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/local/mysql/bin/

export PATH

unset USERNAME

如上面類似添加mysql路徑

總結(jié) centos 下安裝很方便,因為yum已經(jīng)給安裝上了,缺依賴的時候會自動下載安裝。

bitsCN.com

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

centos5.9安裝mysql5.5.31_MySQL

centos5.9安裝mysql5.5.31_MySQL:CentOS bitsCN.com centos 5.9安裝mysql 5.5.31 在linux下安裝安裝mysql,會出現(xiàn)各種各樣的依賴關(guān)系,在centos下安裝mysql出現(xiàn)各種依賴關(guān)系[root@localhost]# tar xzvf cmake-2.8.4.tar.gz [root@localhost src]
推薦度:
標簽: 安裝 linux 31
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 云阳县| 宜川县| 农安县| 崇义县| 永丰县| 美姑县| 昂仁县| 抚松县| 滦南县| 城固县| 化隆| 河西区| 新龙县| 谢通门县| 大丰市| 南岸区| 杭锦后旗| 谢通门县| 临夏县| 灵山县| 绥江县| 牙克石市| 东港市| 淅川县| 河曲县| 通城县| 水城县| 贵溪市| 彭州市| 徐州市| 平乐县| 衡阳市| 南京市| 车险| 锦屏县| 巴彦淖尔市| 外汇| 合水县| 道真| 招远市| 林口县|