ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

来源:互联网 发布:win7右下角网络感叹号 编辑:程序博客网 时间:2024/06/06 01:49

https://stackoverflow.com/questions/11657829/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run/25033582#25033582?newreg=541e88f55a6549fe948cb75108a02473




20down vote

I solved this by killing the mysql process:

ps -ef | grep mysqlkill [the id]

And then I started the server again with:

sudo /etc/init.d/mysql restart

But start works as well:

sudo /etc/init.d/mysql start

Then I logged in as admin, and I was done.

finally solve the problem by above method

20down vote

I solved this by killing the mysql process:

ps -ef | grep mysqlkill [the id]

And then I started the server again with:

sudo /etc/init.d/mysql restart

But start works as well:

sudo /etc/init.d/mysql start

Then I logged in as admin, and I was done.

阅读全文
0 0
原创粉丝点击