yum install mysql mysql-server mysql-devel -y
service mysqld start
chkconfig mysqld on
mysql -u root
show databases;
use mysql;
update user set host = '%' where user = 'root';
FLUSH PRIVILEGES;
quit
进n11 链接数据库 用户 改密码 @localhost和root@% 两个密码一样然后复制通道跑下面
mysql -h你的IP -uroot -p数据库密码
mysql -uroot;
UPDATE mysql.user SET Password = OLD_PASSWORD('这里面输入你的数据库密码')WHERE Host = '%' AND User = 'root';
FLUSH PRIVILEGES;
quit