如何解决ERROR 2002 (HY000):Can't connect to local MySQL server
时间:2011-03-15 来源:zhongjianzhou
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
今天服务器遇到了一个很熟悉的问题
输入
#mysql -u root -p
ERROR 2002 (HY000):Can't connect to local MySQL server
1.#ps -A|grep mysql 显示类似: 4829 ? 00:00:00 mysqld_safe
4903 ? 00:00:31 mysqld 2.#kill -9 4829 3.#kill -9 4903 4.#/etc/init.d/mysql restart 5.#mysql -u root -p
1.#ps -A|grep mysql 显示类似: 4829 ? 00:00:00 mysqld_safe
4903 ? 00:00:31 mysqld 2.#kill -9 4829 3.#kill -9 4903 4.#/etc/init.d/mysql restart 5.#mysql -u root -p
相关阅读 更多 +