LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   completely remove mysql and reinstall (https://www.linuxquestions.org/questions/linux-software-2/completely-remove-mysql-and-reinstall-168187/)

siphi 04-09-2004 12:41 PM

completely remove mysql and reinstall
 
Hi, I've been having loads of trouble with mysql and I now want to completely remove all traces of it from my system . Redhat9 with apache2 and php 4 is what i have... I want to get rid of mysql server client and tables and user details.. Can anyone help? thanks

Crashed_Again 04-09-2004 01:04 PM

Well, first I'd find out what mysql rpm's I have installed:

rpm -qa | grep mysql

Then remove the whatever packages it says you have installed related to mysql by doing:

rpm -e <package name>

Then just to make sure run:

updatedb
locate mysql | more

I'm not sure if deleting the rpm's leaves the mysql databases so check to make sure that /var/lib/mysql has been deleted. That is where all the mysql databases are created by default.

siphi 04-09-2004 01:37 PM

Ok I've done all that and it's looking good. All that i have left is my php manual (the mysql part is showing up) and a file called "/var/run/mysqld"... Should i delete the mysqld???

siphi 04-09-2004 03:15 PM

Ok I have reinstalled 'MySQL-server-4.0.18-0' & 'MySQL-client-4.0.18-0' . they are both working correctly and I also have httpd (apache2) installed aswell. Php (4) seems to be working correctly but in my phpinfo.php page MySQL is not mentioned anywhere and doesn't seem to be working with my login process on my website. Any ideas on what might be wrong?

Crashed_Again 04-09-2004 05:27 PM

I think you need to install the php-mysql package or mysql-php package. I forget what its called.


All times are GMT -5. The time now is 03:41 PM.