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

Uninstall mysql under Linux

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

It is relatively easy to uninstall MySQL. You can first view the native MySql installation information by typing the following command

Rpm-qa | grep-I mysql

If the installation is successful, then there will be the relevant installed MySQL package, of course, in my tortured afternoon, except for the final installation, I have not seen once.

If you see it, then you are lucky to delete the package directly.

Rpm-ev package name

After you delete it, remember to delete the relevant old version of the development library and header files.

Rm-fr / usr/lib/mysql

Rm-fr / usr/include/mysql

You even have to find all the files and folders related to the word mysql and delete them as well!

Find /-name 'mysql'

Then drop all the rm found!

The data and / etc/my.cnf in / var/lib/mysql will not be deleted after uninstallation. If determined to be useless, delete them manually.

Rm-f / etc/my.cnf

Rm-fr / var/lib/mysql

So far, the unloading of Dafa ends here.

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

Database

Wechat

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

12
Report