# yum -y install mysql
# yum install mysql-server
# yum install mysql-devel
# chgrp -R mysql /var/lib/mysql
# chmod -R 770 /var/lib/mysql
# service mysqld start
# mysql -u root -ppassword //进入mysql控制台
# mysql>use mysql;
# mysql>update user set host = '%' where user = 'root'; //这个命令执行错误时可略过
# mysql>flush privileges;
# mysql>select host, user from user; //检查‘%’ 是否插入到数据库中
#mysql>quit