Host is not allowed to connect to this MySQL server 错误的处理方法

1.

mysql>use mysql;

mysql>update user set host = '%' where user = 'root';

mysql>select host, user from user;

2. 

mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

mysql>flush privileges;

说明:%是哪个IP地址可以访问这个MYsql服务,可以换成你想要的IP地址!

posted @ 2015-05-30 09:46  liulun  阅读(1382)  评论(0编辑  收藏  举报