Page 1 of 1

Warning: mysql_connect(): Too many connections

Posted: Tue Oct 21, 2008 6:44 am
by me666
hey, i often get this error from my website... Warning: mysql_connect(): Too many connections in /home/www/(website address)/database.php on line 2
Too many connections
does any1 know a way of overcoming this? if there is a way?
i sometimes get it even when i first come on to the site, and i know no1 else is looking at it, it takes serveral mins until i can refresh and get the site displayed.

thanks

Re: Warning: mysql_connect(): Too many connections

Posted: Tue Oct 21, 2008 7:19 am
by staar2
you need to allow more connections it was setting var. Make sure when you use mysql you need to close the connection.

Re: Warning: mysql_connect(): Too many connections

Posted: Tue Oct 21, 2008 1:13 pm
by me666
im not sure how to allow more connections, and i use a free mysql that comes with the free webserver im using online so not sure if i have the right permisions to do that anyway. ive added the close command to the bottom of a few of my pages, and everything seams to be ok, so i expect aslong as i add it to the rest of them it should run a little better. Thanks