The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Removing MySQL database - Error while connecting to MySQL

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

  1. okapy

    okapy Registered

    Joined:
    Sep 25, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
  3. okapy

    okapy Registered

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

Share This Page