首页 > 数据库技术 > 详细

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

时间:2020-04-03 19:12:03      阅读:137      评论:0      收藏:0      [点我收藏+]

问题描述

在阿里云的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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!