访问远程mysql数据库,出现报错,显示“1130

在使用Navicat for MySQl访问远程mysql数据库,出现报错,显示“1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server“。解决办法如下:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION

把他运行一下就行了。

原文地址:https://www.cnblogs.com/Ares0023/p/9472825.html