Re: Connecting To Multiple MySQL Databases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux