Navicat 远程连接远程数据库(1130错误解决方法)

1、问题: 连接远程数据库,出现了这个1130错误,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server
2、解决方案:

进入mysql:

执行命令1----->GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '您的数据库密码' WITH GRANT OPTION;
执行命令2----->flush privileges;

ok ,再连接测试试一下,发现成功。

发布了27 篇原创文章 · 获赞 7 · 访问量 3509

猜你喜欢

转载自blog.csdn.net/qq_33966519/article/details/104982876