Navicat连接MySQL时弹出:1130 is not allowrd to connect to this MySQL server

修改时间: 2020-11-20 1:48:00 AM

文章时间:2020年11月20日 01:32:04
解决问题:使用Navicat连接MySQL,直接报错服务器不让连接

关联类似问题文章

1、Mysql8.0 远程连接用户配置
2、利用Navicat远程连接宝塔Mysql中的所有数据库(root用户)
3、Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’
4、docker安装mysql及navicat远程连接

操作步骤 按照下面代码执行

[root@centos]# mysql -u root -p
Enter password: 
use mysql;
select host from user where user='root';

修改帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入MySQL后后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"

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

重载配置使其生效

flush privileges;

添加新评论