Link to home
Start Free TrialLog in
Avatar of MYSQLuser
MYSQLuser

asked on

Webapplication - Not able to connectto MYSQL database (php application)

I got a web application package. And I configured this (sample app - Fast cgi method) under IIS and defaulted to index,php.

Then I installed the PHP on the same application server and checked the phpinfo.php -- shows up fine. (PHP 5.3)


Then I installed the Mysql under database server and configured and this works fine when I try to conenct through a sample application. Coonected succesfully. (mysqli_connect)

And I want to mention from the package I configured web.config for the host, user, password, database. I also see webans.php whuch contains the hhtp_host..


I don't have any clue how to make this web application to talk to mysql.

Always I get target machine refused it error But when I use my sample application with mysqli_connect -- works fine..


Please let me know of any suggestions...
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Please show us the URL of the failing script and the code that is running at that URL, thanks.
Avatar of MYSQLuser
MYSQLuser

ASKER

The url is like this http://x1/myexample/index.php.


And 1 more thing I am new to mysql and php .. could you let me knwo which code r u looking for ??


web.config ???
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Why did you not post the URL of the failing script?  How can we help you if we don't get the information we ask for?