ERROR 2002 (HY000): Can’t connect to local MySQL server

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 fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com