Hi there.
I am running W2K, IIS, PHP and mySQL.
I can connect to mySQL through a console and run queries on my database. I can also run simple PHP scripts through IIS.
However, the following code produces an error:
$dblink = mysql_connect("localhost:3306", "username", "password");
The following is the error message:
-------------------------------
Warning: Can't connect to MySQL server on 'localhost' (10061) in C:\Inetpub\wwwroot\time\test.php on line 2
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in C:\Inetpub\wwwroot\time\test.php on line 2
-----------------------------------
I am running W2K, IIS, PHP and mySQL.
I can connect to mySQL through a console and run queries on my database. I can also run simple PHP scripts through IIS.
However, the following code produces an error:
$dblink = mysql_connect("localhost:3306", "username", "password");
The following is the error message:
-------------------------------
Warning: Can't connect to MySQL server on 'localhost' (10061) in C:\Inetpub\wwwroot\time\test.php on line 2
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in C:\Inetpub\wwwroot\time\test.php on line 2
-----------------------------------