Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Removing MySQL database - Error while connecting to MySQL

Discussion in 'Database Discussion' started by okapy, Jun 24, 2014.

  1. okapy

    okapy Registered

    Joined:
    Sep 25, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. okapy

    okapy Registered

    Joined:
    Sep 25, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Thanks. That actually helped.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice