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.

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:
    6
    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:
    8
    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
    ---
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    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