Re: Connecting To Multiple MySQL Databases

From: Date: Mon, 07 Feb 2005 20:13:47 +0000
Subject: Re: Connecting To Multiple MySQL Databases
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-208195@lists.php.net to get a copy of this message
Richard Lynch wrote:
<snip /> Actually, you want a few SPARE MySQL connections, so you can use the mysql command line monitor to do things -- Particularly in case of a run-away PHP/MySQL script which slams the server into over-drive... If you don't have a connection available cuz they're all used up by Apache/_pconnect, you can't log into mysql monitor and you can't use mysqladmin to bring it down nicely and... Don't do that. :-) <snip /> Actually, MySQL already takes care of that as it allows 'max_connections + 1' clients to connect, leaving the '+1' connection for the user(s) with SUPER privilege (that can therefore issue a "SHOW PROCESSLIST" or nicely bring down the server).
http://dev.mysql.com/doc/mysql/en/too-many-connections.html Back to lurking, cheers everybody. Silvio

« previous php.general (#208195) next »