Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
05:33 15 Dec 2010

I am getting the following error when I try to connect to mysql:

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

Is there a solution for this error? What might be the reason behind it?

mysql sockets