ERROR 2002 (HY000): Can’t connect to local MySQL server
admin | Jun 03, 2009 | Comments 0
Issue :
After upgrading from MySQL4.1 to MySQL5 on a cPanel server, MySQL is failing to start with the error:
ERROR 2002 (HY000): Can’t connect to local MyS QL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
Fix :
To fix this, run the following command:
mv /etc/my.cnf /etc/my.cnf.OLD
Then force update MySQL :
/scripts/mysqlup –force
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547