Bug #11966 Updated: mysql_pconnect opens new connections with the same parameters
ID: 11966
Updated by: derick
Reported By: akul@otamedia.com
Old Status: Open
Status: Closed
Bug Type: MySQL related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
I;m not be able to reproduce this. But mysql_pconnect will make a connection for every httpd process
that gets spawned.
One such httpd handles then like 100 requests, and there are mostly more than one of these child
processes.
For every such child process, a new connection will be made, that is normal bahavior.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-07-09 05:32:51] akul@otamedia.com
each new mysql_pconnect opens new connection. About system: see http://www.crimaniak.com/info.php
Code:
// defined constants: $DBServer, $DBUser, $DBPassword
include("base.inc.php");
// Open connection to server
if(!$base=mysql_pconnect($DBServer,$DBUser,$DBPassword))
ErrExit("Error during connect to database:" . mysql_error());
------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11966&edit=1
Thread (2 messages)