Solved

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

Posted on 2013-05-15
4
279 Views
Last Modified: 2013-05-20
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...
0
Comment
Question by:MYSQLuser
  • 3
4 Comments
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39170136
Please show us the URL of the failing script and the code that is running at that URL, thanks.
0
 

Author Comment

by:MYSQLuser
ID: 39171395
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 ???
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39171406
Firefox can't find the server at x1.
What is the URL of the failing script?

If you're new to PHP and MySQL, you need to give yourself a chance to learn the basics.  This book will help with that.
http://www.amazon.com/PHP-MySQL-Web-Development-Edition/dp/0672329166/
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39182674
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?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question