473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How to enable MySQL support in PHP on IIS

Rahulnewdelhi
Hello all

I installed php, mysql and IIS in xp. Problem is this while i run following file

[PHP]<?php
phpinfo();
?>[/PHP]

it doesnt show mysql info table in result. I seen mysql server it is running well. While i am trying to connect my php file to mysql database then it doesnt connect. why it is happening? how to short out this problem, please help me
May 4 '07 #1
6 13045
hey friend finally i found the solution of this problem. i tell you

after installation of php and mysql check both r working or not.

1. open you php.ini file and find extension=mbstring.dll and remove semicolon ";" before this dll.

2. Find extension=php_mysql.dll and again remove semicolon ";" before this dll

3. Find extension_dir="./" and replace it with extension_dir=c:\php\ext

then save and exit from your php.ini file

4. right click on your mycomputer icon and click properties

(o) Select advance tab

(o) Click on environment variable

(o) Click on new button from system variable area

(o) put PHPRC as variable name and C:\php as variable value and then click several ok

(o) Restart you web server and run php file contained phpinfo(); function and you will see mysql configration table



Hello all

I installed php, mysql and IIS in xp. Problem is this while i run following file

[PHP]<?php
phpinfo();
?>[/PHP]

it doesnt show mysql info table in result. I seen mysql server it is running well. While i am trying to connect my php file to mysql database then it doesnt connect. why it is happening? how to short out this problem, please help me
Jun 1 '07 #2
Atli
5,058 Expert 4TB
Thank you for sharing your solution with us.

I'm changing the title to better descripe the contents of the thread.

Moderator
Jun 2 '07 #3
Hi!! Thanks for posting that.

I'm having just that problem, BUT, all of the extensions and directories and stuff are already enabled in my setup, and it still isn't working for me. The only thing that hadn't been done was pointing PHPRC in the Environment vars towards my php installation. So I did that, rebooted, but no good.

I know mySQL is working; I can connect to it with the mySQL Admin. It also works on my two development machines (one Windows, one Linux, but both runing Apache instead of IIS).... just not on THIS server, which is my live server.

I'm considering switching it to Apache, but it's a lot of work for a test...

Any other ideas I can try? Thanks a bunch!!

Rob
Jan 22 '08 #4
Atli
5,058 Expert 4TB
Hi Rob.

I've had some problems like this on IIS to.
Sometimes adding the PHP installation directory to the path variable seems to work.

Most of the time when PHP wont load MySQL it's because it can't find the module .dll file, so adding the path to that file into the path variable should do the trick.

If all else fails, you could always try to copy the .dll file into the Windows directory and see what happens.
Jan 22 '08 #5
Man this is weird. I checked PATH and the path to php was already there. So I coped php_mysql.dll into c:\windows. Still nothing.

I think I'm gonna do up an Apache config and see if I can get it working that way... will just run Apache on 8080 for now so I don't have to potentially screw up my live server. ;)

Rob
Jan 22 '08 #6
first of all check that in php.ini that from mysql remove ; (semi colon)
Jan 25 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Aditya Ivaturi | last post by:
We have a CMS which is written is based on php & mysql. Recently we received a request to support multiple languages so that sites in that particular laguage can be created. I did some search on...
7
by: varois83 | last post by:
Hi I am fairly new to PHP/mysql and was reading an online tutorial and learned that my short tags weren't enabled. At this time I have no need for them, my setup apache/mysql/php runs on my PC...
2
by: Vincent Bouret | last post by:
Hi, I have read that Unicode (UTF-8) was not enabled by default in the mysql-4.1.0-alpha binaries. How can I enable it? What should I change in the code to do so? Thanks Vincent
0
by: abarr03 | last post by:
I am using cold fusion to make a small custom website using mysql to store the information a user inputs. I want it to be able to save japanese and unicode text, but whenever I enter any it comes...
74
by: John Wells | last post by:
Yes, I know you've seen the above subject before, so please be gentle with the flamethrowers. I'm preparing to enter a discussion with management at my company regarding going forward as either...
6
by: frustratedcoder | last post by:
I have tried to find a good ref. on how to enable soap and mysql in PHP5 on windows xp but without luck. Can any one take me through the process? I need to enable both soap and mysql I'm not...
2
by: psawant | last post by:
hi all. How do i enable pooling on mysql connection? this is my string. DRIVER={MySQL ODBC 3.51 Driver};" + "SERVER=dfdfd;" + "DATABASE=dbname;" + "UID=" + UserId +";" + "PASSWORD=ff;" +
0
Coldfire
by: Coldfire | last post by:
Since i cannot show the differences in a two-column like table. I am first putting MS SQL Server 2005 and then MySQL 5.x. MS SQL Server 2005 Brief Overview - SQL Server is a full-fledged...
1
by: manu123456 | last post by:
can any plz help this out, i am not able to enable innoDB support in my sql with iis server
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.