Home  >  Article  >  Operation and Maintenance  >  How to delete mysql using yum in linux

How to delete mysql using yum in linux

青灯夜游
青灯夜游Original
2022-04-18 14:34:215875browse

Deletion method: 1. Use the "rpm -qa | grep -i mysql" command to view all dependency information of mysql; 2. Use the "yum remove mysql dependency" command to uninstall all dependencies in sequence; 3. Use "rm -rf file or directory" command to delete the related files and directories of mysql.

How to delete mysql using yum in linux

The operating environment of this tutorial: linux5.9.8 system, mysql8 version, Dell G3 computer.

Use yum to delete mysql under linux

1. Check the installed mysql and list all dependencies

View command:

rpm -qa | grep -i mysql

How to delete mysql using yum in linux

will list all dependencies of mysql

2. Uninstall mysql

Use the yum remove mysql dependency command to uninstall all mysql dependencies in sequence

Example:

yum remove mysql-community-server-5.6.36-2.el7.x86_64

3. Delete the mysql file directory

Use rm -rf file or directory Delete the mysql file directory in sequence

If you do not know the mysql file directory, you can use: find / -name mysql View related file directories

How to delete mysql using yum in linux

Uninstallation completed

[Related recommendations: mysql video Tutorial

The above is the detailed content of How to delete mysql using yum in linux. 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