Bug #12406 Updated: Can't connect to MySQL through IIS

From: Date: Sun, 02 Jun 2002 18:43:43 +0000
Subject: Bug #12406 Updated: Can't connect to MySQL through IIS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9203@lists.php.net to get a copy of this message
ID: 12406 Updated by: k.schroeder@php.net Reported By: sgines@softwiseonline.com -Status: Open +Status: Bogus Bug Type: IIS related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: I've test this on W2k pro and server with PHP 4.0.6. No connection problems with 'localhost'. Previous Comments: ------------------------------------------------------------------------ [2001-07-26 13:22:04] sgines@softwiseonline.com PHP works fine under IIS...I can run the phpinfo(); function just fine. MySQL works fine. I can go into MySQLAdmin and add tables, etc... When I try and run the script <? $db = mysql_connect("localhost", "root"); if($db) echo("Success"); else echo("Failure"); ?> through IIS, it fails with a timeout error message. However, if I run this same script through the command line (eg. php.exe index.php) it returns Success in a fraction of a second. I have given USR_compname full rights to c:\mysql, c:\php, c:\src (which is where the .php is located) and c:\winnt\system32. IIS has a virtual directory called ComicReader that points to c:\src\comicreader. .php files map to c:\php\php.exe %s %s and Script Engine is checked. I am running php cgi v4.0.6 from the php-4.0.6-Win32.zip. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12406&edit=1

« previous php.bugs (#9203) next »