|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-01 21:02 UTC] monochromec at gmail dot com
Description: ------------ When executing mysql_connect with 5.2.11 running as a module under Apache 2.2.14 on a Windows 7 platform, mysql_connect times out and the browser reports "connection reset" or similar depending on the used browser. This behaviour was first observed with phpMyAdmin 3.2.3 (file library/dbi/mysql.dbi.lib.php, line 38). When changing the invocation type from module to (f)cgi, the problem disappears. This behaviour is reproducible with 5.3.1 (vc6-x86). MySQL is version 5.1, client side 5.0.51a (as reported by phpinfo). Reproduce code: --------------- Cf. mysql.dbi.lib.php PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
Config: Windows 7 x64 Apache 2.2.14 x86 using php5_module PHP 5.3.1 thread safe x86 VC6 MySQL 5.1 x86 Doesn't work: <?php mysql_connect('localhost'); ?> mysql_errno(): 2002 mysql_error(): 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. This works: <?php mysql_connect('127.0.0.1'); ?> I'm thinking this has something to do with IPv6 (localhost is resolving to ::1 when I ping it). Clients like mysql's CLI (mysql -h localhost) connect without issues.