Mysql
远程连接Mysql服务器的数据库,错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server
猜想是无法给远程连接的用户权限问题。
这样子操作mysql库,即可解决。
在本机登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称'%'即可
mysql -u root -p
mysql;use mysql;
mysql;select 'host' from user where user='root';
mysql;update user set host = '%' where user ='root';
mysql;flush privileges;
mysql;select 'host' from user where user='root';
第一句:以权限用户root登录
第二句:选择mysql库
第三句:查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称)
第四句:修改host值(以通配符%的内容增加主机/IP地址),当然也可以直接增加IP地址
第五句:刷新MySQL的系统权限相关表
第六句:再重新查看user表时,有修改。。
重起mysql服务即可完成。
作者 fireDragonpzy
解决远程连接mysql错误1130
精选 转载
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
解决MySQL 1130 错误,无法远程连接
原因:mysql服务器 root 默认只允许 localhost 也就是
mysql 服务器 .net -
mysql 连接远程连接服务器 1130错误
今天在用sqlyog连接非本地的Mysql服务器的数据库,居然无法连接很奇怪,报
mysql 软件测试 ip地址 -
Mysql远程连接Error1130解决方法
对于1130这个错误,大家网上查到都知道是“无法给远程连接的用户权限”的
mysql 远程连接 用户权限 -
【数据库】远程连接mysql出现1130的错误
MySQL数据库远程连接mysql出现1130的错误
数据库 MySQL 数据库连接 数据库远程连接 MySQL远程