mysql 远程连接报错1130

在使用navicat连接mysql数据库过程中出现错误:
1130-Host ‘192.168.X.X’ is not allowed to connent to this mysql server。
如图:
在这里插入图片描述
原因:
权限授权问题
解决办法:
UPDATE user SET Host= ‘%’ WHERE User= ‘root’ LIMIT 1;
flush privileges;

猜你喜欢

转载自blog.csdn.net/weixin_43727535/article/details/107471848