Edit report at http://bugs.php.net/bug.php?id=50172&edit=1
ID: 50172
Comment by: signals4change at yahoo dot com
Reported by: erik at navhost dot com
Summary: Unable to communicate with the MySQL server service
Status: Bogus
Type: Bug
Package: MySQL related
Operating System: win32 only - Win. Server 2008 R2
PHP Version: 5.3.1RC4
Assigned To: mysql
Block user comment: N
New Comment:
edit this file with notepad:
C:\Windows\System32\drivers\etc\hosts
change
# 127.0.0.1 localhost
# ::1 localhost
to
127.0.0.1 localhost
# ::1 localhost
Previous Comments:
------------------------------------------------------------------------
[2009-12-11 12:48:45] pajoye@php.net
For the 1000th time, this is NOT a bug.
Disable IPv6 or do the necessary changes in the hosts file (::1 and
other).
------------------------------------------------------------------------
[2009-12-08 09:45:47] mcleod at spaceweb dot nl
PHP 5.3.1 does not communicate with MySQL, not with PDO_MySQL through
ZendFramework and not with old mysql_ family functions.
------------------------------------------------------------------------
[2009-11-22 18:36:12] dominique at ottello dot net
Problem only with 5.3.1. No problem with 5.3.0 final.
Regards
------------------------------------------------------------------------
[2009-11-20 13:20:46] ferd352+php at gmail dot com
Sorry, I seemed to miss the message above about commenting out the "::1"
line, which when I did resolved the issue.
------------------------------------------------------------------------
[2009-11-20 13:14:56] ferd352+php at gmail dot com
I'm having the same issue, along with other problems, trying to upgrade
from PHP 5.2 to 5.3 (VC9)
Just tried 5.3.1 on Win2k8_R2 IIS7.5 and I have to change "localhost" to
"127.0.0.1" in my scripts even though the hosts file already has the
entry 127.0.0.1
------------------------------------------------------------------------
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/bug.php?id=50172--
Edit this bug report at http://bugs.php.net/bug.php?id=50172&edit=1