您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

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

bubuko 2022/1/25 20:00:31 mysql 字数 2085 阅读 684 来源 http://www.bubuko.com/infolist-5-1.html

问题描述 在阿里云的centos上部署了MySQL,而且已经配置了安全规则,但是用navicatMySQL时,出现下图的情况 解决方法: 1、再次阿里云的配置规则,发现没问题 2、登录centos系统,进行如下操作(一般可以直接复制,除了密码) mysql -u root -p use mysql; ...

问题描述

在阿里云的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、再次连接测试

技术分享图片

 

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

原文:https://www.cnblogs.com/fengfengyue/p/12628299.html


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶