Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How centos deletes mysql

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "centos how to delete mysql", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "centos how to delete mysql" this article.

Centos deletes mysql: 1. Use the command "rpm-qa | grep-I mysql" to view the services installed by mysql; 2. Use the command "rpm-ev-- nodeps service name" to delete all the queried mysql services.

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

Centos7 to delete a mysql

Method 1.

1. Check which services of mysql are installed

Rpm-qa | grep-I mysql

2. Then uninstall one by one

Turn off the mysql service before uninstalling

Rpm-ev-nodeps mysql-community-release-el7-5.noarchrpm-ev-nodeps mysql-community-common-5.6.38-2.el7.x86_64rpm-ev-nodeps mysql-community-client-5.6.38-2.el7.x86_64rpm-ev-nodeps mysql-community-libs-5.6.38-2.el7.x86_64rpm-ev-nodeps community-server-5.6.38-2.el7.x86_64

Execute rpm-qa again after executing the command | grep-I mysql will find that the uninstall is complete.

Method 2.

Execute a command

Find /-name mysql

Delete the directory found

The folder found on rm-rf

Delete etc/my.cnf manually if it exists, so that the uninstall of mysql is complete.

Note: the mysql found by the second method is not necessarily a MySQL installation service, but may be another file name. You should pay attention to the distinction when deleting it.

The above is all the contents of the article "how to delete mysql from centos". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report