Jump to content

*SOLVED* Configure PHP with MySQL


Recommended Posts

Hello,

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.
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.