I'm using windows server 2012 R2. I've a problem with trying to connect php to mysql on the IIS server. This is my PHP code
$con = mysqli_connect("127.0.0.1", "root", "XXXXXX", "neda_multi") or die (mysqli_connect_error());
When running the page on the browser, this is the error I get.
Warning: mysqli_connect(): (00000/0): in C:\inetpub\wwwroot\test-connect.php on line 4
I'm able to connect to mysql from the cmd line. What could be the problem? where should I look?
Earlier, I didn't have any problem connecting to the database, then all of a sudden this problem started to occur. Please help.