There was an error in this gadget

Thursday, April 15, 2010

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

"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) "

When you restart the mysql you may got this error.

# ps ax | grep mysql

you will get two or more pid of mysql. kill all using the following command.

# kill -9 xxxx xxxx

Now restart the mysql.

.

No comments:

Post a Comment