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

How to delete mysql using yum in linux

青灯夜游
Release: 2022-05-17 11:05:41
Original
5931 people have browsed it

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

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

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!

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