Re: How can a script tell if there's a MySQL problem?
| From: | Nathan Rixham | Date: | Fri, 09 Jan 2009 16:18:44 +0000 |
| Subject: | Re: How can a script tell if there's a MySQL problem? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285847@lists.php.net to get a copy of this message | ||
Brian Dunning wrote:
I have one server that's pretty busy and runs into "Too many connections" from MySQL from time to time, and needs to have MySQL restarted to clear it up. I've tried everything I can think of to have PHP take note of this error but continue executing with other stuff, but no matter what I try the PHP script stops whenever it encounters this and just displays "Too many connections." Anyone know if there's a way for PHP to gracefully detect this and resume operation without choking?why not simply increase the max_connections mysql variable to something a bit higher :) http://dev.mysql.com/doc/refman/5.1/en/too-many-connections.html