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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sumarliði Einar Daðason wrote:

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

I have search on the Internet for a solution for this but without any luck.
Any ideas?

Yes, first check that MySQL is actually listening on port 3306
("Netstat" should do that trick), and, if it is, try turning your
firewall off.  What is the value of $host?

KDK



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux