MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
2012-08-23 11:10
639 查看
显示的是主机localhost连不上MySQL。由于我不小心将localhost给删除了有关。MySQL控制台也进不去。可以在my.ini配置文件中mysqld处添加skip-grant-tables。然后就可以从MySQL控制台登录了。
mysql的用户表user在数据库mysql中。
use mysql;
show tables;
select * from user;
发现user中没有localhost用户,可以insert localhost。
由于user表中的项还比较复杂,密码使用md5存的样子。mysql安装也比较方便,所以索性重新安装,但是我卸载了软件,删除了服务,删除了注册表,安装时,还是报错error 1130. 也就是数据库文件没有删除掉,而安装不会覆盖掉旧的user表。
MySQL 的数据库文件放在C:\Documents and Settings\All users\Application Data\MySQL\...中,该文件夹是隐藏的。
找到该文件夹,删除,Ok. 重新安装MySQL成功!
转自:http://blog.163.com/yangjun1988422@126/blog/static/47412917201123182450744/
mysql的用户表user在数据库mysql中。
use mysql;
show tables;
select * from user;
发现user中没有localhost用户,可以insert localhost。
由于user表中的项还比较复杂,密码使用md5存的样子。mysql安装也比较方便,所以索性重新安装,但是我卸载了软件,删除了服务,删除了注册表,安装时,还是报错error 1130. 也就是数据库文件没有删除掉,而安装不会覆盖掉旧的user表。
MySQL 的数据库文件放在C:\Documents and Settings\All users\Application Data\MySQL\...中,该文件夹是隐藏的。
找到该文件夹,删除,Ok. 重新安装MySQL成功!
转自:http://blog.163.com/yangjun1988422@126/blog/static/47412917201123182450744/
相关文章推荐
- 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
- mysql不支持远程连接的解决办法(#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)
- SQL Error (1130): Host '192.168.1.100' is not allowed to connect to this MySQL server
- Error No. 1130 Host '*.*.*.*' is not allowed to connect to this MySQL server解决方法
- ERROR 1130 (HY000): Host 'xxxxxx' is not allowed to connect to this MySQL server解决办法
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- mysql error 1130 hy000:Host 'localhost' is not allowed to connect to this mysql server 解决方案
- Mac OS mysql Host 'localhost' is not allowed to connect to this MySQL server
- mysql数据库错误ERROR 1130:Host '' 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: Host 'A'is not allowed to connect to this MySQL server
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- mysql:ERROR 1130: Host '192.168.0.102' 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
- Host 'localhost' is not allowed to connect to this MySQL server解决