Re: About MySQL connections

From: Date: Thu, 08 Mar 2001 18:47:49 +0000
Subject: Re: About MySQL connections
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7211@lists.php.net to get a copy of this message
From the PHP documention: "First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection." According to this, and my own experience also, you can "open" as many pconnects you want without causing any trouble. Lasse Laurila "Rick Emery" <remery@excel.com> wrote in message news:EAA093B474ABD311A71E00508B5FE083021B8967@adntex03.us.excel.com... > 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 > > -- > 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 >

« previous php.db (#7211) next »