Page 1 of 1

'Could not connect to the database: Too many connections'

Posted: Mon Apr 07, 2008 9:21 pm
by xenoalien
I have a problem with my website: http://www.wallpapersearch.net that is an error on my search page that says I have too many connections. I now realize that I forgot to close the connection in my php code... :( is there a way to kill or stop all connections to the database?

Re: 'Could not connect to the database: Too many connections'

Posted: Mon Apr 07, 2008 9:55 pm
by Chris Corbyn
This should not matter unless you're using persistent connections. PHP closes the resource itself at the end of the script. It's more likely your host have oversold too much and they do not have enough MySQL connections for everybody to use. What host are you with?