groupadd mysql
useradd -r -g mysql mysql
tar -zxvf  mysql-5.6.17-linux-glibc2.5-i686.tar.gz  -C /usr/local
mv mysql-advanced-5.6.16-linux-glibc2.5-x86_64 /usr/local/mysql
cd /usr/local/mysql/scripts
 ./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
cd /usr/local/mysql/support-files
cp mysql.server /etc/rc.d/init.d/mysqld
/etc/init.d/mysqld start
mysql
vi ~/.bash_profile #修改环境变量
Logo

更多推荐