Completely remove MySQL database from CentOS system

Source: Internet
Author: User
Tags mysql in

Steps:

1. Enter the command to query the installed MySQL in the system.

Rpm-qa |grep-i MySQL

  

2. Uninstall MySQL individually.

Yum Remove system displays the installed MySQL

For example: Yum remove mysql-community-server-5.7.19-1.el7.x86_64

3. Use the Find command to find the MySQL folder that is present on the system after the uninstallation is complete.

Find/-name MySQL

  

4. Delete the folder path individually using the RM-RF command.

For example: Rm-rf/etc/logrotate.d/mysql

At this point, MySQL is completely removed from CentOS.

  

Completely remove MySQL database from CentOS system

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.