Blog.itblood.comcompletely-uninstall-the-mysql-under-linux-graphic-tutorials.html linux thoroughly uninstall mysql graphic tutorial 1, find the previous installed mysql command: rpm-qa | grep-imysql can be seen as shown in: instructions before the installation of: MySQL-client-5.5.25a-1.rhe
Http://blog.itblood.com/completely-uninstall-the-mysql-under-linux-graphic-tutorials.html linux thoroughly uninstall mysql graphic tutorial 1, find the previous installed mysql command: rpm-qa | grep-I mysql can see, as shown in: instructions before the installation of: MySQL-client-5.5.25a-1.rhe
Http://blog.itblood.com/completely-uninstall-the-mysql-under-linux-graphic-tutorials.html
How to uninstall mysql in linux
1. Check whether mysql is installed before.
Command: rpm-qa | grep-I mysql
As shown in:
Note:
MySQL-client-5.5.25a-1.rhel5
MySQL-server-5.5.25a-1.rhel5
2. Stop the mysql service and delete the previously installed mysql
DELETE command: rpm-e-nodeps package name
# Rpm-ev MySQL-client-5.5.25a-1.rhel5
# Rpm-ev MySQL-server-5.5.25a-1.rhel5
3. Search for the directories of earlier mysql versions and delete the files and libraries of earlier mysql versions.
Find/-name mysql
The search result is as follows:
[Root @ localhost ~] # Find/-name mysql
/Var/lib/mysql
/Var/lib/mysql
/Usr/lib64/mysql
Delete the corresponding mysql directory
Rm-rf/var/lib/mysql
Rm-rf/var/lib/mysql
Rm-rf/usr/lib64/mysql
Perform specific steps to find and delete the Directory
Note: After uninstallation,/etc/my. cnf is not deleted and must be manually deleted.
Rm-rf/etc/my. cnf
4. Check whether mysql is installed on the machine again.
Rpm-qa | grep-I mysql
No results. It indicates that the installation is complete, and you can install mysql directly.
Unless specified, the article is an IT hot-blooded youth
Http://blog.itblood.com/completely-uninstall-the-mysql-under-linux-graphic-tutorials.html