PDA

View Full Version : MySQL Error :Too many connections ...class_core.php on line 312


thangnam
02-01-2010, 06:39 AM
Hi,
We got the following Mysql problems. They happen everyday. So Could you please give us your advice How to recover this?

There are 2 kinds of errors (we get the email report):

First problem

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/home/xxx/domains/xxxxxxxx.com/public_html/forum/includes/class_core.php on line 312

second problem

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/xxx/domains/xxxxxxxx.com/public_html/forum/includes/class_core.php on line 312

Thank you very much for your advice

Quang

XTF
02-01-2010, 03:31 PM
Increase the number of connections MySQL supports or use FastCGI instead of mod_php.