Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

Have you tried 127.0.0.1 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
add comment

Your Answer

 
discard

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