Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql update statement 3 22
send post values 7 26
How would I do this...? 2 28
What's the best way to programatically have a MySQL DB update another MySQL DB 4 32
Creating and Managing Databases with phpMyAdmin in cPanel.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 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