Thoroughly Delete Mysql (rpm, yum installation) and centosyum from Centos
I used centos6 and mysql to solve various problems. I want to reinstall a brand new mysql. After yum removes mysql-server mysql and then installs it again, I cannot get a clean mysql, the original/etc/my. cnf remains unchanged and data in datadir remains unchanged. manually delete/etc/my. cnf,/usr/lib/mysql,/usr/share/mysql,/var/lib/mysql does not play any role either. After searching, it is found that it should not be deleted completely.
Copy codeThe Code is as follows:
[Root @ data lib] # rpm-qa restart grep mysql
Mysql-5.5.25-1.el6.remi.i686
Mysql-libs-5.5.25-1.el6.remi.i686
Compat-mysql51-5.1.54-1.el6.remi.i686
Mysql-server-5.5.25-1.el6.remi.i686
[Root @ data lib] # yum remove mysql-server mysql-libs compat-mysql51
In this case, it is completely uninstalled, and a new mysql will be obtained after reinstallation.