'Could not connect to the database: Too many connections'
Moderator: General Moderators
'Could not connect to the database: Too many connections'
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?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: 'Could not connect to the database: Too many connections'
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?