MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
2012-12-15 20:47
435 查看
我用的是navicat可视化界面操作MySQL出现这个错误后我查了好多资料但是大部分结局问题的方式都一样,我的直接从dos下输入密码就出错,所以很多解决方案都不好用,最后只能重装,但是重装中又遇到卸载问题,卸载不完全的差错,又查了些资料,是有些就是卸载不干净,主要是有些隐藏文件没有删除的原因,把C:\ProgramData\MySQL这个文件删除掉后就解决了问题。我的重装就完成了,然后就用网上提到的解决方案就可以了就是
改表法。
可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
mysql -u root -pvmwaremysql>use mysql;
mysql>update user set host = '%' where user = 'root';
mysql>select host, user from user;
然后通过navicat添加访问用户就可以
改表法。
可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
mysql -u root -pvmwaremysql>use mysql;
mysql>update user set host = '%' where user = 'root';
mysql>select host, user from user;
然后通过navicat添加访问用户就可以
相关文章推荐
- MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- mysql: 1130 Host '192.168.1.3' is not allowed to connect to this MySQL server
- SQL Error (1130): Host '192.168.1.100' is not allowed to connect to this MySQL server
- ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- mysql ERROR 1130: Host ’localhost′ is not allowed to connect to this MySQL server
- 转 Error No. 1130 Host '*.*.*.*' is not allowed to connect to this MySQL server
- mysql error 1130 hy000:Host 'localhost' is not allowed to connect to this mysql server 解决方案
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- mysql错误1130,具体描述如下ERROR 1130 Host 'localhost' is not allowed to connect to this MySQL
- [MySQL]MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- Host 'localhost' is not allowed to connect to this MySQL server解决
- SQL Error (1130): Host '192.168.1.126' is not allowed to connect to this MySQL server
- "Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
- SQL Error (1130): Host '192.168.1.100' is not allowed to connect to this MySQL server
- SQL Error (1130): Host '192.168.1.100' is not allowed to connect to this MySQL server