MySQL连接报错:1130 - Host '10.127.109.21' is not allowed to connect to this MySQL server
1、连接服务器: mysql -u root -p

2、查看当前所有数据库:show databases;

3、进入mysql数据库:use mysql;

4、查看mysql数据库中所有的表:show tables;

5、查看user表中的数据:select Host, User from user;

6、修改user表中的Host:update user set Host=’%’ where User=‘root’;

7、最后刷新一下:flush privileges;

8、重新在Navicate中测试一下:

相关文章: