View Full Version : Too many connections (line 311)
v123shine
09-18-2010, 05:36 PM
Hello,
I got more than 4000 error mail per day, this is the content of mail:
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections /home/*****/includes/class_core.php on line 311
How to solve this?
Note: i'm using vb 3.8.4
Thank You
Lynne
09-18-2010, 06:02 PM
The server has maxed out the number of MySQL connections it allows. You can try turning persistent connections off by adding this to your config.php:
$config['MasterServer']['usepconnect'] = 0; But, if you still have the problem you will have to talk to your host about raising that limit. Also, see this Common MySQL Error Messages (http://www.vbulletin.com/docs/html/troubleshoot_mysql_errors)
v123shine
09-19-2010, 12:46 AM
Thank you Lynne for help me :)
I already add that code in confing.php
but i'm still get alot error mail
can you give me others solution, please!
SVTCobraLTD
09-19-2010, 12:57 AM
The server has maxed out the number of MySQL connections it allows. You can try turning persistent connections off by adding this to your config.php:
$config['MasterServer']['usepconnect'] = 0; But, if you still have the problem you will have to talk to your host about raising that limit. Also, see this Common MySQL Error Messages (http://www.vbulletin.com/docs/html/troubleshoot_mysql_errors)
Does it matter where this is added?
Lynne
09-19-2010, 03:36 AM
Thank you Lynne for help me :)
I already add that code in confing.php
but i'm still get alot error mail
can you give me others solution, please!
I gave you the other solution:
But, if you still have the problem you will have to talk to your host about raising that limit.
Does it matter where this is added?
On it's own line fter the <?php and before the ?>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.