Web Hosting Question

Discussion in 'Web Hosting' started by SHO, Apr 17, 2009.

  1. #1
    I have a vbulletin site trade4all.com but I keep getting database errors such as:
    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/tradlcom/public_html/vb/includes/class_core.php on line 311

    Do I need to switching hosting companies if some who should I go with I do have videos on my site.
     
    SHO, Apr 17, 2009 IP
  2. njoker555

    njoker555 Notable Member

    Messages:
    4,392
    Likes Received:
    139
    Best Answers:
    0
    Trophy Points:
    240
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #2
    you should contact vB about that or your host - but it's saying it can't connect to mysql - your host could be having problems with that OR you are just outgrowing the shared host environment - you could always try and get another host and see how that goes

    good luck
     
    njoker555, Apr 17, 2009 IP
  3. micksss

    micksss Notable Member

    Messages:
    4,427
    Likes Received:
    268
    Best Answers:
    1
    Trophy Points:
    285
    As Seller:
    100% - 4
    As Buyer:
    97.2% - 35
    #3
    Have you made any updates recently to your VB setup? Specifically on line 311?

    : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    /home/tradlcom/public_html/vb/includes/class_core.php on line 311

    or maybe your host is updating mysql...
     
    micksss, Apr 17, 2009 IP
  4. Jafhost

    Jafhost Peon

    Messages:
    148
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    This basically means that the MySQL server/program is down or heavily loaded...

    You can ask your host to move accounts to another server or optimize MySQL.
     
    Jafhost, Apr 17, 2009 IP
  5. njoker555

    njoker555 Notable Member

    Messages:
    4,392
    Likes Received:
    139
    Best Answers:
    0
    Trophy Points:
    240
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #5
    I've gotten similar errors on that same line countless number of times lol - if i remember correctly, that line is empty and it doesn't really have anything to do with the php file, just mySQL

    and OP should still contact vB about it since they are the experts with this. seeing that you run cPanel, check the server status window to see if mySQL is running properly (if it's being monitored)
     
    njoker555, Apr 17, 2009 IP