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.
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
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...
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.
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)