ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'varrunmysqldmysqld.sock'

xiaoxiao2021-02-28  70

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

20 down vote

I solved this by killing the mysql process:

ps -ef | grep mysql kill [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

20 down vote

I solved this by killing the mysql process:

ps -ef | grep mysql kill [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.

转载请注明原文地址: https://www.6miu.com/read-85027.html

最新回复(0)