php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3271 mysql_connect() fails sometimes
Submitted: 2000-01-21 19:39 UTC Modified: 2000-06-09 18:23 UTC
From: jrusnak at igl dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Beta 3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jrusnak at igl dot net
New email:
PHP Version: OS:

 

 [2000-01-21 19:39 UTC] jrusnak at igl dot net
-Apache 1.3.9
-PHP v4b3
-MySQL 3.22.29

After trying out Zend, PHP scripts started to fail from time to time at the mysql_connect function.  A reload will sometimes make it work, but it fails about 50% of the time to connect to the MySQL server, which isn't even showing an attempted connection.  It's as if the function isn't trying to correct hostname/port or something.

I tried using an IP address instead of a hostname and got the same results.

Switching back to PHP3 solved the problem completely, everything was compiled against the same copies of Apache and MySQL.

Thanks.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-09 18:23 UTC] zeev at cvs dot php dot net
Please try out PHP 4.0.0 release, and let us know if the problem persists.  If it does - please check what kind of error message you receive upon failure.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 20:01:32 2024 UTC