Home > Database > Mysql Tutorial > body text

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

黄舟
Release: 2017-07-30 14:22:50
Original
1458 people have browsed it

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
Copy after login

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
Copy after login

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


  find / -name mysql
Copy after login

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

For example:


rm -rf /etc/logrotate.d/mysql
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!