|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #439 Unable to connect
Submitted: 1998-06-05 06:47 UTC Modified: 1998-09-22 10:29 UTC
From: sander at op3dfx dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0 Release Candidate 4 OS: RedHar Linux
Private report: No CVE-ID: None
 [1998-06-05 06:47 UTC] sander at op3dfx dot com
Apache runs: PHP3RC4 , PHP2

PHP2 can connect. PHP3 can also, INITIALLY. 

After two/three days of operation, with LOTS OF LOAD.
(3 million queries after that) PHP2 does fine, but PHP3
cannot connect anymore. Not with pconnect() and not with
mysql(x,y). Kill -HUP httpd does not solve it. Kill -9 with a restart does fix it.

Mysql version is 3.21.30


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-22 10:29 UTC] zeev
First, upgrade to the released version of PHP 3 if you haven't done so yet.
Then, set the ini directive mysql.default_user and (if necessary) mysql.default_password.  The way the MySQL API connect function
works make this a very possible symptom.
Please update us as to whether the problem persists or not.  If it does, what does mysql() or mysql_pconnect() say when they fail?
(make sure you run with error_reporting set to report warnings)

[no response from the user for quite a while - if you're still experiencing the problem with the released versions of PHP 3, please resubmit
the bug report ]
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 01:01:25 2019 UTC