最近使用NavicatforMySQl访问远程mysql数据库,出现报错,显示“1130Host#39#39isnotallowedtoconnecttothisMySQLserver“解决法如下详细可以参考这个,有图解教程,希望可以帮到navicatisnotallowedtoconnecttothismysqlserver你。
ERROR 1130 Host #39#39 is not allowed to connect to thisMySQL server 解决方法1改表法可能是navicatisnotallowedtoconnecttothismysqlserver你navicatisnotallowedtoconnecttothismysqlserver的帐号不允许从远程登陆,只能在localhost这个时候只要在localhost的那台电脑,登入mysql后,更改quotmysqlquot 数据库里的 quotuserquot 表里的 quothostquot项,从quotlocalhostquot改称quot%quotmysql u。
远程连接mysql数据库时出现如下提示信息“MYSQL CONNECT ERROR – 1130Host ’20243****’ is not allowed to connect to this MySQL server”在创建mysql账户时,限制连接账户远程登录也就是说,除了当前mysql所在的安装服务器外,其navicatisnotallowedtoconnecttothismysqlserver他的ip主机都是不允许访问的,即使navicatisnotallowedtoconnecttothismysqlserver你的用户名和密码是。
mycnf中有行要注意下bindaddress 这行是只允许本地登陆数据库,需要网络访问的话请注释掉或ip改成允许访问的ip。