Linux源碼安裝mysql5.5
添加時間:2015-3-31 20:52:23
添加:
思海網絡
linux下源碼安裝mysql步驟如下:
yum update yum upgrade yum install -y vim man wget yum install -y gcc gcc-c++ gcc-g77 pcre-devel openssl-devel bison autoconf automake make libcurl-devel gd-devel zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz wget http://mysql.cs.pu.edu.tw/Downloads/MySQL-5.5/mysql-5.5.30.tar.gz tar -zxvf cmake-2.8.10.2.tar.gz cd cmake-2.8.10.2 ./bootstrap gmake gmake install cd .. cmake --help cmake --version cp -rf ./cmake-2.8.10.2 /usr/local/cmake rm -rf ./cmake-2.8.10.2 ls cmake --version groupadd mysql useradd -r -g mysql mysql tar -zxvf mysql-5.5.30.tar.gz cd mysql-5.5.30 cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/usr/local/mysql -DWITH_INNOBASE_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DEXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=3306 -DWITH_DEBUG=0 make make install chown -R mysql.mysql /usr/local/mysql/ cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf cd /usr/local/mysql/ /usr/local/mysql/s/mysql_install_db --user=mysql cp support-files/mysql.server /etc/init.d/mysqld chmod +x /etc/init.d/mysqld chkconfig --level 345 mysqld on Vim /etc/profile export PATH=$PATH:$HOME/bin:/usr/local/mysql/bin:/usr/local/mysql/lib service mysqld start service mysqld stop
關鍵字:Linux、源碼、安裝、mysql
新文章:
- CentOS7下圖形配置網絡的方法
- CentOS 7如何添加刪除用戶
- 如何解決centos7雙系統后丟失windows啟動項
- CentOS單網卡如何批量添加不同IP段
- CentOS下iconv命令的介紹
- Centos7 SSH密鑰登陸及密碼密鑰雙重驗證詳解
- CentOS 7.1添加刪除用戶的方法
- CentOS查找/掃描局域網打印機IP講解
- CentOS7使用hostapd實現無AP模式的詳解
- su命令不能切換root的解決方法
- 解決VMware下CentOS7網絡重啟出錯
- 解決Centos7雙系統后丟失windows啟動項
- CentOS下如何避免文件覆蓋
- CentOS7和CentOS6系統有什么不同呢
- Centos 6.6默認iptable規則詳解