4

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

view full story
linux-howto

http://serverfault.com – My VPS had a hardware failure, and I was knocked out of service for the past 24 hours. Now that it's back up, MySQL refuses to work. Please keep in mind that my VPS with these exact configurations has been running for the past 2 months without error, I have not changed any code/database settings since the hardware failure. At the command line, simply typing "sudo mysql" returns ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I can not login with PhpMyAdmin, I receive 2 errors: #2002 Cannot log in to the MySQL server Connection for c (HowTos)