[异常]ERROR 1130: Host ’XXXXXX is not allowed to connect to this MySQL server

版权声明:本文为博主原创文章,未经博主允许不得转载。有任何问题请邮件联系[email protected] https://blog.csdn.net/drdongshiye/article/details/83687827

问题描述:Linux centos7 安装了mysql后,服务器端可以正常使用,但是用Navicat远程连接时出现ERROR 1130: Host ’XXXXXX is not allowed to connect to this MySQL server 问题 远程无权限连接!

问题分析
1.未开放端口 3306(默认)

2.未对账户授权
use mysql;
select host,user from user;
看用户 host 是否为 %
3.my.cnf 默认绑定的ip是127.0.0.1 修改成 0.0.0.0

猜你喜欢

转载自blog.csdn.net/drdongshiye/article/details/83687827