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规则详解