Welcome to Dream.In.Code
Become a PHP Expert!

Join 149,999 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,328 people online right now. Registration is fast and FREE... Join Now!




php & mysql in IIS

 
Reply to this topicStart new topic

php & mysql in IIS, MYSQL database couldn't connect

chitara
16 Nov, 2006 - 04:25 AM
Post #1

D.I.C Head
**

Joined: 16 Dec, 2005
Posts: 74


My Contributions
Hello!

I am using IIS & mysql to for running a website in php.

My php page is working good but mysql connection failed, i.e couldn't retrive data from the database.

I have set C:\mysql\bin folder to the Path variable in Windows. the steps are as follows:

-> Right-click the My Computer icon on your desktop, then choose properties.
-> Click the Advanced tab, and then click Environment Variables.
-> In the list of System Variables, choose Path, and then click Edit.
-> At the end of the list of local folders, type ;C:\mysql\bin (the semi-colon is required!), and press ok.

Did configure IIS for php asfollows:

-> Click Start -> Settings -> Control Panel.
-> Double-click Administrative Tools.
-> Double-click Internet Services Manager.
-> On the Tree tab on the left, click the plus sign beside your computer's name, right-click the Default Web Site icon, then choose Properties.
-> Choose the Home Directory tab, then choose Configuration (near the bottom)
-> Click Add, then Browse.
-> Navigate to C:\PHP\php-cgi.exe, and select this.
-> Add in .php as the extension, and tick Check that file exists.


Did I miss something???
Can anyone tell me please???


Regards




User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Php & Mysql In IIS
16 Nov, 2006 - 05:29 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,355



Thanked: 51 times
Dream Kudos: 25
My Contributions
Did the connection itself fail, or was it a database transaction that failed? What was the error message?
User is online!Profile CardPM
+Quote Post

chitara
RE: Php & Mysql In IIS
17 Nov, 2006 - 04:10 AM
Post #3

D.I.C Head
**

Joined: 16 Dec, 2005
Posts: 74


My Contributions
My script is ok. bcos i am running the same website in apache server and tis working well.

but when I tried to running it iis then its not retriving any data from the database.

I did setup php, mysql in different machine, not the same one.

please tell me whats wrong.

did i mistake to configue mysql or php or iis.

please tell me.
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Php & Mysql In IIS
17 Nov, 2006 - 05:16 AM
Post #4

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,355



Thanked: 51 times
Dream Kudos: 25
My Contributions
Is there an error message being generated? Is the connection being made at all, or is the problem with data retrieval?
User is online!Profile CardPM
+Quote Post

skyhawk133
RE: Php & Mysql In IIS
17 Nov, 2006 - 06:19 AM
Post #5

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,277



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
There are several "packages" that auto configure Apache, PHP, and all the popular plugins and software. Would it be easier to use one of those, or is this going to be a production server?

http://www.apachefriends.org/en/xampp-windows.html
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 08:23PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month