linux centos 安装 mysql-5.6.17

2014-03-28 16:11:42 0  category: PHP记事本
wget  http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.17-linux-glibc2.5-x86_64.tar.gz

tar xvf mysql-5.6.17-linux-glibc2.5-x86_64.tar.gz

mv mysql-5.6.17-linux-glibc2.5-x86_64 /usr/local/mysql

/usr/sbin/groupadd mysql

/usr/sbin/useradd -g mysql mysql

mkdir -p /var/mysql/data

yum install libaio

/usr/local/mysql/scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/var/mysql/data --user=mysql