如果你想连接你的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
时间: 2024-11-09 16:20:34