LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mysql - uninstall completely (https://www.linuxquestions.org/questions/linux-software-2/mysql-uninstall-completely-513959/)

yogaboy 12-27-2006 01:37 AM

mysql - uninstall completely
 
Good Morning!

I installed mysql-server using yum, and now I want to uninstall it. Completely. I've had a good look around, but like most things nix, the simple straightforward thing either isn't written down or doesn't work.

How do I completely remove/uninstall/zap/disintegrate/divorce/lance mysql-server?

I've tried

rpm -e mysql-server.x86_64
and
yum remove mysql-server.x86_64

but it's still there - I can still log on. My next move would be to remove the directories
/var/lib/mysql
/var/lib/mysql/mysql
/usr/share/mysql
/usr/bin/mysql
/usr/lib/mysql
/usr/include/mysql

but if there is an easier way then I'd really appreciate it being shared with me.

Thanks.

jschiwal 12-27-2006 01:58 AM

What error do you get when you try to remove the mysql packages? The period in the package names doesn't look right. Try "rpm -qa | grep mysql" to find the real names of all the mysql packages. The name to use is prior to the version number.

yogaboy 12-27-2006 11:58 AM

Thanks for the reply.

I get this from the grep:

mysql-4.1.20-1.RHEL4.1
mysql-4.1.20-1.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-devel-4.1.20-1.RHEL4.1

so if I run
sudo rpm -e mysql-4.1.20-1.RHEL4.1

that should remove it?

yogaboy 12-27-2006 11:59 AM

ok, I just tried it anyway and got this

error: "mysql-4.1.20-1.RHEL4.1" specifies multiple packages

do you know how I'd deal with that?

yogaboy 12-27-2006 05:13 PM

this helped me see the differences in the files. Thanks for the help, it is much appreciated.

rpm -qa --queryformat "%{NAME}-%{VERSION}-%{ARCH} \\n" | grep mysql | sort


All times are GMT -5. The time now is 05:14 AM.