PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) -> established connection failed because connected host has failed to respond

From: Date: Sat, 03 Apr 2010 17:22:51 +0000
Subject: PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) -> established connection failed because connected host has failed to respond
Groups: php.general 
Request: Send a blank email to php-general+get-303800@lists.php.net to get a copy of this message
Hi, I have recently upgrade to 64 bit Intel i7 computer running Windows 7 Ultimate 64 bit. I have setup PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) with success. phpinfo() shows the MySQL extension loaded, but when I try to use mysql_connect( $host, $user, $password ) in a PHP script I get following error: PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\inetpub\wwwroot\old\index.php on line 29 PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: 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. in C:\inetpub\wwwroot\old\index.php on line 29 PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\inetpub\wwwroot\old\index.php on line 29 - - - - - - - - - - - - I have search on the Internet for a solution for this but without any luck. Any ideas? Regards, Summi

« previous php.general (#303800) next »