After upgrading from php 5.2 to php 5.3 on Windows, I was unable to connect to MySQL databases on localhost. I eventually tracked the problem down to entries in my hosts file:
It contained:
127.0.0.1 localhost
[...]
::1 localhost
Commenting out the second line fixed the problem.
The problem is explained here: http://bugs.php.net/bug.php?id=50172
メモ
このセクションでは、MySQL ネイティブ・ドライバの使い方についての様々なメモをまとめます。
mysqlnd を使うということは、 そのベースとして PHP のストリームを使って接続するということです。 mysqlnd のタイムアウト設定などの詳細に関しては、 MySQL クライアント・ライブラリのマニュアルではなく、 PHP のストリームのマニュアル (ストリーム) を参照しなければいけません。
Les Brown
23-Feb-2010 04:04
