Jump to content


Photo

*SOLVED* Configure PHP with MySQL


  • Please log in to reply
2 replies to this topic

#1 calcio22

calcio22
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationRTP, NC

Posted 20 May 2006 - 09:14 PM

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.

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 May 2006 - 11:13 AM

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

#3 calcio22

calcio22
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationRTP, NC

Posted 23 May 2006 - 06:08 PM

Thanks! This worked!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users