Home >Database >Mysql Tutorial >An introduction to the steps on how to completely delete the Mysql database under Centos system

An introduction to the steps on how to completely delete the Mysql database under Centos system

黄舟
黄舟Original
2017-07-30 14:22:501522browse

This article mainly introduces the relevant information on the steps to completely delete the Mysql database in the Centos system. It is very good and has reference value. Friends in need can refer to it

The detailed steps are as follows:

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


rpm -qa |grep -i mysql

2. Uninstall mysql one by one.

yum remove The system displays the installed mysql

For example:


yum remove mysql-community-server-5.7.19-1.el7.x86_64

3. After the uninstallation is complete, use the find command to find the system the mysql folder that exists.


  find / -name mysql

4. Use the rm -rf command to delete the folder paths one by one.

For example:


rm -rf /etc/logrotate.d/mysql

At this point, mysql has been completely removed from centos.

Summarize

The above is the detailed content of An introduction to the steps on how to completely delete the Mysql database under Centos system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn