Jump to content


This topic is now archived and is closed to further replies.


*SOLVED* Configure PHP with MySQL

Recommended Posts


I have installed Apache, PHP, and MySQL on a Windows 2003 Server in that order. Unfortunately, because I installed MySQL last, I do not know how to get PHP to realize it is there. PHP is current installed in C:\Program Files\Apache\PHP, while MySQL is installed in C:\MySQL, and the php.ini file is in C:\WinNT.

While, I cannot be the first person to ask this question, how do I get PHP to recognize the installation of MySQL?

I believe I am running the latest stable version of PHP and MySQL.

Thank you in advance.

Share this post

Link to post
Share on other sites
You need to configure PHP to use the mysql extension once you have done that you should be able to use any mysql_* functions.

To configure PHP to use the mysql extension read my post [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=87276\" target=\"_blank\"]here[/a]. Note you will need to substitute any instance of C:\WINDOWS with C:\WinNT instead aswell as any instace of C:\PHP with C:\Program Files\Apache\PHP

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.