Solved

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

Posted on 2013-05-15
4
275 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 108

Expert Comment

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

Author Comment

by:MYSQLuser
Comment Utility
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 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
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 108

Expert Comment

by:Ray Paseur
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now