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
 [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 Jun 03 17:01:33 2024 UTC