Check what is installed in mysql rpm -qa | grep -i mysql If a null value is returned, it means that mysql is not installed. If the following situation is returned, it means that mysql uninstall yum remove mysql-community-common-5.7.27-1.el7.x86_64 yum remove mysql57-community-release-el7-8.noarch yum remove mysql-community-server-5.7.27-1.el7.x86_64 yum remove mysql-community-client-5.7.27-1.el7.x86_64 yum remove mysql-community-libs-5.7.27-1.el7.x86_64 Check whether it is uninstalled cleanly rpm -qa | grep -i mysql Find the directory of mysql find / -name mysql delete rm -rf /usr/lib64/mysql rm -rf /usr/share/mysql ... Note: /etc/my.cnf will not be deleted after uninstallation and needs to be deleted manually rm -rf /etc/my.cnf Delete /var/log/mysqld.log (If you do not delete this file, the newly installed mysql will not be able to save the new password, resulting in failure to log in) rm -rf /var/log/mysqld.log This is the end of this article about how to uninstall MySQL 5.7 on CentOS 7. For more information about how to uninstall MySQL 5.7 on CentOS 7, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Windows DNS server exposed "worm-level" vulnerability, has existed for 17 years
>>: React.js framework Redux basic case detailed explanation
1. Add the following dependencies in pom.xml <...
1. Upload rz to the server and decompress it rz [...
This article uses examples to illustrate the erro...
There was a problem when installing the compresse...
At the end of last year, I replaced the opensuse ...
RedHat6.5 installation MySQL5.7 tutorial sharing,...
[mysql] replace usage (replace part of the conten...
Previously, we all used files with the suffix .ms...
How to create a virtual machine on VMware and ins...
MySQL slow log is a type of information that MySQ...
1. es startup command: docker run -itd -e TAKE_FI...
What products do you want to mention? Recently, t...
MySQL 8.0.3 is about to be released. Let’s take a...
Say it in advance We all know that Docker can ach...
What? What star coat? Well, let’s look at the pic...