ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
昨天还好好的,今天莫名就连不上,先用mysql-font再直接用命令连,都连不上,服务也重起了N次了,试着操作手册上的命令也没什么效果,不知道为什么,我不想重装MYSQL,里面有很多数据,各位帮忙下了,实在不行就教偶如何完整的把里面的数据给搞出来
C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqladmin -h 'localhost' version va
riables
mysqladmin: connect to server at ''localhost'' failed
error: 'Unknown MySQL server host ''localhost'' (11001)'
Check that mysqld is running on 'localhost' and that the port is 3306.
You can check this by doing 'telnet 'localhost' 3306'C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqladmin -h 'localhost' --port=330
6 version
mysqladmin: connect to server at ''localhost'' failed
error: 'Unknown MySQL server host ''localhost'' (11001)'
Check that mysqld is running on 'localhost' and that the port is 3306.
You can check this by doing 'telnet 'localhost' 3306'C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqladmin -h '192.168.1.87' --port=
3306 version
mysqladmin: connect to server at ''192.168.1.87'' failed
error: 'Unknown MySQL server host ''192.168.1.87'' (11001)'
Check that mysqld is running on '192.168.1.87' and that the port is 3306.
You can check this by doing 'telnet '192.168.1.87' 3306'
C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqladmin -h 'ip for your host' ver
sion
mysqladmin: connect to server at ''ip' failed
error: 'Unknown MySQL server host ''ip' (11001)'
Check that mysqld is running on 'ip and that the port is 3306.
You can check this by doing 'telnet 'ip 3306'C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqladmin --socket=/tmp/mysql.sock
version
mysqladmin: connect to server at 'localhost' failed
error: 'Host 'localhost' is not allowed to connect to this MySQL server'C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqladmin -h hostname version
mysqladmin: connect to server at 'hostname' failed
error: 'Unknown MySQL server host 'hostname' (11001)'
Check that mysqld is running on hostname and that the port is 3306.
You can check this by doing 'telnet hostname 3306'

解决方案 »

  1.   

    正在连接到3306...不能打开到主机的连接, 在端口 23: 连接失败
    mysql已经启动
    底下是我打出的log日志
    C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt, Version: 5.0.18-nt-log. started with:
    TCP Port: 3306, Named Pipe: (null)
    Time                 Id Command    Argument
      

  2.   

    telnet 你的服务器IP  3306不是23端口。
    如果在3306段口TELNET失败的话。检查你的防火墙。
    其他问题看精华帖子。
      

  3.   

    HHost 'F8E6B0640A554A7' is not allowed to connect to this MySQL server失去了跟主机的连接。
    连不上服务器,精华贴在哪
      

  4.   

    HHost   'F8E6B0640A554A7'   is   not   allowed   to   connect   to   this   MySQL   server 
      

  5.   

    为什么不允许连接上啊,我的监听都打开了  TCP    F8E6B0640A554A7:3306   F8E6B0640A554A7:0      LISTENING
      

  6.   

    是不是权限给人改了。出错不是说你的那个叫 'F8E6B0640A554A7'的主机不允许连接嘛。
      

  7.   

    我不太清楚,我是用root账户,'F8E6B0640A554A7'应该是我的主机,现在怎么都访问不了,我想改root的密码也改不了.基本上运行什么命令都是
    mysqladmin: connect to server at 'localhost' failed
    error: 'Host 'localhost' is not allowed to connect to this MySQL server'
    快疯掉了,防火墙也关了,3306查了也有监听,就是登陆不上去,数据库中还有几个数据文件有用
      

  8.   

    你的机子很神奇哦,如果是myisam的表,还是可以直接copy出来用的。
    你把服务卸掉,重装试试吧,只不过应该也没什么用的。
      

  9.   

    http://topic.csdn.net/u/20071229/09/a0c7e024-0293-4e7a-9454-ba412f94d99d.html
      

  10.   

    我有试过,更改grant all privileges on *.* to 'yourname'@'%' identified by 'youpasswd';
    但是连root都登陆不上,所以我就莫名其妙,由于有项目要开发,没办法只能冲装数据库,还有数据在其他电脑上有,没有太大的损失.
    谢谢大家
    还想请问大家,如果发生类似数据库崩溃无救的时候,如何拯救原来的数据.我有试过把data里面的文件全部拷贝出来,放在新装的数据库中,好像所有表的值都没有,都是报***.数据库名  desn't exit; 我会发出新贴,希望大家指点