远程连接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;

就可以了。

posted @ 2019-08-26 14:06  alittlecomputer  阅读(520)  评论(0)    收藏  举报