navicat连接linux虚拟机中mysql出现的错误

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:50   2470   0

Error: 1130 - Host'ClientIP' is not allowed to connect to this MySQL server

解决方法:使用root用户登陆Linux,更改容许登陆的IP地址范围。 授权。
mysql>grant all privileges on *.* to 'root'@'%' identified by 'rootpasswd' with grant option;

grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令';

Error: 2003:Can't connect to MySQL server on '192.168.*.*'
解决方法:关闭Linux的防火墙功能。

  1. #chkconfig iptables off
  2. #reboot

现在重新用Navicat连接Linux mysql 便可以成功了。

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP