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.

Errr!, Can't connect to local MySQL server through socket

Discussion in 'General Discussion' started by Rishabh, Oct 6, 2007.

  1. Rishabh

    Rishabh Member

    Joined:
    Jun 28, 2007
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    /home/thesymbi/public_html/includes/class_core.php on line 274

    I get this around 50 times a day!
    I am fed up !

    Please someone help me out urgently :(
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Does the script sometimes work but other times not work?

    If so, what's the CPU load of the server? Is MySQL crashing and restarting? Check /var/log/chkservd.log for details.
     
Loading...

Share This Page