Problem

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)

Resolution

To fix this, run the following command:

mv /etc/my.cnf /etc/my.cnf.OLD

Then force MySQL to update with:

/scripts/mysqlup --force

17 Rating: 5.0/5 (4 votes cast)