Database error in vBulletin

Discussion in 'MySQL' started by sunny1980, Sep 12, 2008.

  1. #1
    Im keep getting the following error at least 10 times a day. What does it mean? Please help...

    Database error in vBulletin:

    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/ocdtmem5/public_html/includes/class_core.php on line 274
     
    sunny1980, Sep 12, 2008 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #2
    Make sure mysql is running properly.
     
    mwasif, Sep 12, 2008 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    It seems that your MySQL server going down frequently. If you have root access to the server then monitor the MySQL service or contact your host to fix it.

    Kailash
     
    kailash, Sep 15, 2008 IP
  4. demonzmedia

    demonzmedia Guest

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You should be catching the exception so you don't get this error.

    If you can run a Cron / Schedualed Task every few minutes to make sure Apache / MySQL / PHP are running correctly and restart them if they're not. If you are on a hosted server complain to your host and move if they don't fix it.
     
    demonzmedia, Sep 16, 2008 IP