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. |
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.
|
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? |
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? |
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. |