ID:               50290
 Updated by:       paj...@php.net
 Reported By:      praveen at aexea dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: vista business
 PHP Version:      5.3.1
 Assigned To:      mysql
 New Comment:

Please disable IPv6 or set localhost correctly in your hosts file (not
::1, as said and explained already a good 100 times here) and try again.
Or use 127.0.0.1?


Previous Comments:
------------------------------------------------------------------------

[2009-12-11 16:36:32] praveen at aexea dot net

yes, i too downgraded to 5.3.0 because of this issue. I even tried
installing a latest snapshot on 25th Nov, but had the same issue..

------------------------------------------------------------------------

[2009-12-11 12:32:20] bramus at bram dot us

Same issue here (PHP 5.3.1 as a  fastcgi module in IIS7). Getting
timeouts and HTTP 500 codes whenever I encounter a script that wants to
connect to a MySQL server.

Internal logging of my app tells me that the mysql(i)_connect function
fails: "Could not connect. A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to
respond."

After reverting to an older version of PHP (pre 5.3.1) all works fine
again.

@pajoye: sample code is really simple:
<?php

// this will fail in PHP 5.3.1 on IIS7 (fastcgi) even though the DB
server is up and the credentials are fine - Internal Server Error will
be spawn.
mysqli_connect('localhost', 'username', 'pass'); 

?>

Hope this helps.

Regards,
Bramus!

------------------------------------------------------------------------

[2009-12-03 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2009-11-27 12:33:25] avivahl at gmail dot com

Probably related to: http://bugs.php.net/bug.php?id=50172

------------------------------------------------------------------------

[2009-11-25 06:44:57] paj...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/50290

-- 
Edit this bug report at http://bugs.php.net/?id=50290&edit=1

Reply via email to