1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server解决Navicat连接MySQL报
Posted Gnnnny
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server解决Navicat连接MySQL报相关的知识,希望对你有一定的参考价值。
最近使用Navicat for mysql访问远程mysql数据库,出现报错,显示“1130 - Host\'xxx.xxx.xxx.xxx\' is not allowed to connect to this MySQL server“。解决办法如下:
- 首先看报错窗口。
- 经查阅,错误原因是:本地IP(xxx.xxx.xxx.xxx)没有访问远程数据库的权限。
- 首先远程连接进入服务器,在cms中输入mysql -u root -p,然后回车,输入密码后回车进入mysql命令行。
- 输入use mysql;
- 输入select user,password,host from user;
- 添加方法如下:
- 再次输入select user,password,host from user;
- 现在再次用Navicat for MySQl访问远程mysql数据库,已经能正常打开了。
- 不过还有一个问题,发现双击打开某张表的时候很慢,至少要3秒。
以上是关于1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server解决Navicat连接MySQL报的主要内容,如果未能解决你的问题,请参考以下文章
ERROR 1130 (HY000): Host 'test177' is not allowed to connect to this MySQL server
Mysql远程连接报错:SQL Error (1130): Host '192.168.6.128' is not allowed to connect to this MySQL s
解决ERROR 1130: Host '*.*.*.*' is not allowed to connect to this MySQL server 方法
1130, "Host 'xxxx' is not allowed to connect to this MySQL server"
远程登陆mysql报错:ERROR 1130 (HY000): Host '10.0.0.8' is not allowed to connect to this MySQL serv
ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL ERROR 1062 (23000): D