Get the App
SLTechnology News&Howtos  ›  Database  › 

Uninstall mysql under Linux

Shulou Source: shulou.com Published: 2022-06-01 13:46:37 10月04日 Update

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.

Tags: Files lucky successful so far information merits and demerits commands Dafa words manual data folders versions so far or native development related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Microsoft Apple Shulou Technology Huawei