Removing MySQL database - Error while connecting to MySQL

okapy

Registered
Sep 25, 2007
2
0
51
I am getting this when I am trying to terminate an account from WHM.

Removing MySQL database “Error while connecting to MySQL: Cpanel::DBI::Mysql connect('','root',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 140”....Removed DB Error while connecting to MySQL: Cpanel::DBI::Mysql connect('','root',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 140

It started after 5.1 to 5.6 upgrade.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Check to see if /tmp/mysql.sock file is symbolically linked to /var/lib/mysql/mysql.sock. EX:

Code:
ls -al /tmp/mysql.sock
We have a few internal cases open to address these types of issues (e.g. Case number 101989).

Thank you.