100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > Navicat连接错误1130:is not allowed to connect to this mysql server

Navicat连接错误1130:is not allowed to connect to this mysql server

时间:2021-07-20 15:25:06

相关推荐

Navicat连接错误1130:is not allowed to connect to this mysql server

先登录到远程仓库的mysql。

mysql -u root -p

进入mysql数据库。

use mysql;

查看user表的host字段

# 这些是允许访问数据库的地址。我们可以追加一条也可以直接将localhost改成%允许所有地址使用这个用户访问。update user set host='%' where user = 'root' and host='localhost';

然后再查看一下这个字段的值

# 值为% 说明成功select host from user where user='root';

更新设定

flush privileges;

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。