mysql-5.6.12-linux-glibc2.5-x86_64.tar.gzmysql
groupadd mysqllinux
useradd -r -g mysql mysqlsql
cd/usr/local/spa
tar zxvf mysql-5.6.12-linux-glibc2.5-x86_64.tar.gzorm
ln -s mysql-5.6.12-linux-glibc2.5-x86_64 mysqlserver
cd mysqlip
chown -R mysql .it
chgrp -R mysqlimport
scripts/mysql_install_db --user=mysql配置
chown -R root .
chown -R mysql data
cp support-files/my-medium.cnf /etc/my.cnf
cp support-files/mysql.server /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig --list mysqld
service mysqld start
远程没法链接的问题
进入到bin目录:
./mysql -u root -p
输入密码
而后执行:use mysql
受权:GRANT ALL PRIVILEGES ON *.* TO 'root'@'36.34.90.248' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;