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.

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:
    1
    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:
    1
    Can anyone help with this please?
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
Loading...

Share This Page