Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Originally posted on stackoverflow, but I think it'd be more appropriate here.

Needed Finfo but deleted msi package, so uninstalled php 5.3.0, downloaded 5.3.2 and installed. Now all my sites have spurious errors and execution time outs. Originally updated with VC9 build but then realised error and updated with VC6 (with same problem).

Example error:

Warning: PDO::__construct() [pdo.--construct]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in ...Core.php on line 60

share|improve this question

Have you tried instead of localhost in your connection definition?

If you can successfully connect after that, open up C:\Windows\System32\drivers\etc\hosts in Notepad and add the following line. After you do this, you should be able to connect with localhost.

::1 localhost

I am making assumptions that your Operating System is either Windows Vista or Windows 7 and you have IPv6 enabled, as these combinations can cause problems like this.

share|improve this answer
I've since gone back to 5.3.0 so can't verify this, but it seems a plausable remedy. – Danten Apr 10 '10 at 18:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.