源码编译安装mysql5.6
yum -y install gcc gcc-c++ gcc autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl make cmake
groupadd mysql
useradd -r -g mysql mysql
tar -zxvf mysql-5.6.10.tar.gz
cd mysql-5.6.10
cmake .
make && make install
默认情况下是安装在/usr/local/mysql
chown -R mysql.mysql /usr/local/mysql
cd /usr/local/mysql/scripts
./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
chkconfig --add mysql
chkconfig mysql on
service mysql start
Starting MySQL SUCCESS!
cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysqld
加入启动项:
chkconfig --add mysqld
chkconfig --level 345 mysqld on
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。