Uninstall mysql under Linux
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.