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!

Random 2002 error - Need a cpanel/mysql guru!

Discussion in 'General Discussion' started by Stuck, Jan 13, 2005.

  1. Stuck

    Stuck Member

    Joined:
    Jan 13, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    Hello,
    I am getting a random error on my site.
    The error is the following:

    Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    This only happens every now and again, sometimes it could be every 10 page loads, sometimes once every few hundred.

    Does anyone know what could be causing this?
    I am running the latest MySQL and PHP versions.

    Thanks!
     
  2. Stuck

    Stuck Member

    Joined:
    Jan 13, 2005
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    Can anyone help with this please?
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    4
    Trophy Points:
    193
    Location:
    Minneapolis, MN
    Make sure your Php scripts closes after using any of your server services. You also need to check on the errors in the log file which might lead to to the cause of the crash.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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