现在的位置: 首页 > 综合 > 正文

连接mysql发生错误1130

2014年01月30日 ⁄ 综合 ⁄ 共 288字 ⁄ 字号 评论关闭

在使用MySQL-Front连接mysql的时候发生的这个错误

ERROR 1130: Host 192.168.88.160 is not allowed to connect to this MySQL server

更改 mysql 数据库里的 user表里的 host项
localhost改称%

mysql -u root -p

mysql>use mysql;

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

mysql>flush privileges;

mysql>select 'host','user' from user where user='root';

现在就可以连接了!

 

抱歉!评论已关闭.