Bug #1247: mysql_pconnect() makes new connection every time
| From: | glitter at chollian dot net | Date: | Fri, 19 Mar 1999 15:41:57 +0000 |
| Subject: | Bug #1247: mysql_pconnect() makes new connection every time | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4688@lists.php.net to get a copy of this message | ||
From: glitter@chollian.net
Operating system: Solaris7 x86
PHP version: 3.0.7
PHP Bug Type: MySQL related
Bug description: mysql_pconnect() makes new connection every time
Specification:
Solaris7 x86 Pentium II 400Mhz with 128MB Main Memory
Apache WebServer 1.3.4
MySQL 3.22.19a
PHP-3.0.7
I found a problem on using mysql_pconnect().
It doesn't do described on manual.
When I try to connect my web page, it establishes new connection to MySQL every time.
So, If I try 30 times, there are 30 thread processes on 'mysqladmin processlist'.
Every process were slept, of course.
But, in the manual of mysql_pconnect(),
----
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.
----
I specified username and password in constant type. Then, how this can happen?
Please let me know asap.
MinSoon Park
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net