mysql远程连接报1130错误

mysql远程连接报1130错误
错误:ERROR 1130: Host ‘192.168.1.3’ is not allowed to connect to thisMySQL serve

错误1130:主机192.168.1.3”不允许连接到thismysql服务

原因:被连接的数据不允许使用 192.168.1.3访问,只允许是用 localhost;

解决方法:

启动cmd mysql 注意环境变量

mysql -u root -p

mysql>use mysql;

mysql>select 'host' from user where user='root';

mysql>update user set host = '%' where user ='root';

mysql>flush privileges;

mysql>select 'host'   from user where user='root';
上一篇:解决报错:错误1130- Host xxx is not allowed to connect to this MariaDb server 九五小庞


下一篇:[LeetCode] 1130. Minimum Cost Tree From Leaf Values 叶值的最小代价生成树