Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-05-15
4
Medium Priority
?
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 111

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 111

Accepted Solution

by:
Ray Paseur earned 1500 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 111

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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

688 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