Azhar wrote:
The error which I received after running this script was "Are you sure mysql is running on port 3306?", what can or have I to do now?
Hmm, that either means, you can't create sockets (didn't enable socket support in php.ini) or you have mysql running on a different port or bound to an ip other than 127.0.0.1.
What does:
netstat -na
tell you? Anything listening on port 3306?
And especially '127.0.0.1:3306'.
There's no Unix-socket communication on windows, so it can't be looking for /var/tmp/mysql.sock or something obscure like that.
To rule that out, specify the mysql_default_* variables in your php.ini file, stop (not restart) iis and start it again after a few secs.
Since php is loaded as an ISAPI into IIS, you need to bring the server down, in order for the DLL (and subsequently the cached ini file) to be unloaded and re-read.