RE: [PHP-DB] About MySQL connections
| From: | Rick Emery | Date: | Thu, 08 Mar 2001 17:50:05 +0000 |
| Subject: | RE: [PHP-DB] About MySQL connections | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7210@lists.php.net to get a copy of this message | ||
mysql_pconnect() opens a persistent connection, that is, one that remains
open for the duration of you session. Therefore, you don't need to re-open
it. Either that, or you can use mysql_connect() to open a non-persistent
connection.
-----Original Message-----
From: Rosen [mailto:rosen_dm@dir.bg]
Sent: Thursday, March 08, 2001 5:55 AM
To: php-db@lists.php.net
Subject: [PHP-DB] About MySQL connections
Hi,
I use "mysql_pconnect" function to connect to MySQL server.
When I call function second time I receive error:
"Warning: MySQL Connection Failed: Too many connections in
/website/transfer.php on line 17"
Please HELP!
Rosen MArinov
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net