关于如何解决Navicat连接错误1130:is not allowed to connect to this mysql server

1.先登录到服务器的mysql

2.使用use mysql;进入mysql这个database

3.select host from user where user='root'; 先查看一下你的root表,此时应该不是%

4.update user set host='%' where user = 'root' and host='localhost';  将它修改为所有人

5.select host from user where user='root'; 检查一下 root有没有被修改

6.flush privileges; 保存修改更新设定

搞定~  完整过程如图

 

posted @ 2021-01-26 00:38  Rico_Tea  阅读(66)  评论(0)    收藏  举报