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!

Most likely causes of intermittent mysql connection errors?

Discussion in 'General Discussion' started by spaceman, Jul 31, 2005.

  1. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    497
    Likes Received:
    3
    Trophy Points:
    318
    Hi All,

    Can someone pls advise me what are the most likely causes of intermittent mysql connection errors:

    Err#1 [22-Jul-2005 00:25:54] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in ...

    I'm seeing the above error on one of the busiest sites on my server (fedora, apache 1.3.33, mysql 4.0.22, ) about 2-4 times per month.

    Out of memory? (512Mb)
    Too many simultaneous mysql connections?
    CPU maxed out?

    What can I do to diagnose and nail this problem?

    Thanks for your help.
     
    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