Click to See Complete Forum and Search --> : adding mySQL support afterwards


Anon
02-07-2001, 11:15 AM
I installed PHP 4.0.1pl2-9 (if I remember correctly) and mySQL (I don't remember version) form RPMs when I installed Linux Red Hat 7.0. My problem is that the installation programs didn't configure mySQL support to PHP. Is there any way to add mySQL support for PHP afterwards?

PS. is the root password same for mySQL that it is for root in Linux? How can I check is my mySQL server running (I haven't noticed its activation on start up)?

Thanks for your help!

brandonschnell
02-07-2001, 01:59 PM
1) recompile php with the mysql libs

2) the root password for mysql is blank i think (i've changed mine to something else a long long long time ago). the mysql & linux permissions are completely seperate.

3) at the command prompt type: "ps -aux | grep mysql" and if you several lines with mysqld then you've got mysql running. if its not running check to see if you've got a script to start mysql in like /etc/rc.d/rc5.d/. if the file starts with Ksomething rename it to Ssomething and run the script like "./S90mysql start". i'm still running redhat 6.2 so i'm not 100% sure where the file is or what its going to be named in redhat 7.0.



brandon

Anon
02-08-2001, 08:00 AM
I have just one more question. This is my firts time I have to install RPM with some parameters. Where do I have to put those parameters? I tried to search information about installing PHP from RPM, but didn't find anything.