Re: limit mysql connections
| From: | John W. Holmes | Date: | Sat, 10 Jan 2004 02:55:44 +0000 |
| Subject: | Re: limit mysql connections | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174189@lists.php.net to get a copy of this message | ||
Diana Castillo wrote:
Is there any way to limit the connections so that this error never happens? Warning: mysql_connect(): Too many connections at /home/local/global/php/libraries/dblayer_mysql.php line 14.The connections are already limited, that's why you get this warning. You need to handle this from the MySQL side and increase the number of connections allowed either when you start MySQL or in a config file. Directions are in the manual, of course. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com