1. 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)
Please see this page for the causes of this error:
http://www.vbulletin.com/docs/html/cantconnect
2. mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
The server has maxed out the number of MySQL connections it allows. You can try turning persistent
connections off in your config.php:
PHP Code:
// ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
// This option allows you to turn persistent connections to MySQL on or off.
// The difference in performance is negligible for all but the largest boards.
// If you are unsure what this should be, leave it off. (0 = off; 1 = on)
$config['MasterServer']['usepconnect'] = 0;
But if you still have problems after that, all you can do is ask your host to raise the maximum number of connections they allow.
Bookmarks