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!

Database ERROR:Can't connect to local MySQL server through socket '/var/lib/mysql/mys

Discussion in 'General Discussion' started by liang3391, Jun 22, 2009.

  1. liang3391

    liang3391 Active Member

    Joined:
    Apr 14, 2009
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    56
    cpanel/whm


    Database ERROR:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    I tried several ways to repair, can be a while, the results of the point of death. All good ideas to the point.
     
  2. JPC-Martin

    JPC-Martin Active Member
    PartnerNOC

    Joined:
    May 31, 2008
    Messages:
    37
    Likes Received:
    1
    Trophy Points:
    58
    Please make sure that symbolic link for mysql.sock is not missing in /tmp partition.

    Try this
    ---
    stop mysql

    run

    # cd /tmp
    # n -s /var/lib/mysql/mysql.sock mysql.sock

    and start mysql service
    ---
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    400
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    This can be a number of things. Check the disk space to make sure it is not full, check the tmp directory contents and permissions, etc. You can also check the logs for any other possible clues.
     
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