php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12406 Can't connect to MySQL through IIS
Submitted: 2001-07-26 13:22 UTC Modified: 2002-06-02 14:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: sgines at softwiseonline dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.0.6 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sgines at softwiseonline dot com
New email:
PHP Version: OS:

 

 [2001-07-26 13:22 UTC] sgines at softwiseonline dot 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-02 14:43 UTC] k.schroeder@php.net
I've test this on W2k pro and server with PHP 4.0.6. No connection problems with 'localhost'.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Feb 04 07:07:04 2023 UTC