Thoroughly Delete Mysql (rpm, yum installation) and centosyum from Centos

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.