Get the App
SLTechnology News&Howtos  ›  Servers  › 

How linux deletes mysql with yum

Shulou Source: shulou.com Published: 2022-05-31 10:48:28 09月21日 Update

Today, I would like to share with you how linux uses yum to delete the relevant knowledge points of mysql. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.

Delete method: 1, use the "rpm-qa | grep-I mysql" command to view all the dependency information of mysql; 2, use the "yum remove mysql dependency" command to uninstall all dependencies in turn; 3, use the "rm-rf file or directory" command to delete the relevant file directory of mysql.

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

Delete mysql with yum under linux

1. View the installed mysql and list all dependencies

View commands:

Rpm-qa | grep-I mysql

Will list all the dependencies of mysql

2. Uninstall mysql

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

Example:

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

3. Delete the mysql file directory

Use the rm-rf file or directory to delete the mysql file directory in turn

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

Uninstall completed

These are all the contents of the article "how to delete mysql with linux with yum". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Tags: Files directories commands knowledge articles content different large information most that is tutorials methods more versions environment computers knowledge points systems industries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology OPPO Reno Huawei Apple Docker