解决-Navicat连接阿里云的MySQL出现“1130-Host 218.3.166.98' is not allowed to connect to this mysQL server”

问题描述

在阿里云的centos上部署了MySQL,而且已经配置了安全规则,但是用navicatMySQL时,出现下图的情况

 解决方法:

1、再次阿里云的配置规则,发现没问题

2、登录centos系统,进行如下操作(一般可以直接复制,除了密码)

mysql -u root -p
use mysql;
select 'host' from user where user='root';
updata user set host='%' where user='root';
flush privileges;
select 'host' from user where user = 'root';

 3、再次连接测试

猜你喜欢

转载自www.cnblogs.com/fengfengyue/p/12628299.html