View Full Version : [ubuntu] Can't connect to mysql (socket file vanishing act)

March 30th, 2010, 10:46 AM
Hi all,

Here's what I get when trying to connect to mysql:

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

Sure enough the file has disappeared over night. Yesterday it was still there and everything was working fine. About one hour of scouring archives I came upon an excellent piece of advice by one Ack99 who recommended (about four years ago) to 'simply' recreate the file, stating that it worked for him. He doesn't say how one simply recreates the file. I'm dying to know.

Thanks for suggestions