远程连接MySQL提示“Host is not allowed to connected to this MySQL server”

如果你想连接你的mysql的时候发生这个错误:

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

这个时候需要授权:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
flush privileges;

就可以了。

原文地址:https://www.cnblogs.com/LoganChen/p/11412207.html