ERROR 2002解决办法 mysql

[root@localhost ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost ~]# ps -A|grep mysql
  639 ?        00:00:00 mysqld_safe
  665 ?        00:00:00 mysqld
[root@localhost ~]# kill -9 639
[root@localhost ~]# kill -9 665
[root@localhost ~]# service mysqld status
mysqld 已死,但是subsys被锁
[root@localhost ~]# service mysqld restart
停止 MySQL:                                             [失败]
启动 MySQL:                                             [确定]
[root@localhost ~]# service mysqld status
mysqld (pid 1273) 正在运行...
[root@localhost ~]# mysql -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.77-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> 
posted @ 2011-02-22 12:48  xngeer  阅读(824)  评论(0编辑  收藏  举报