In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to uninstall the MySQL8.0 version in Linux, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
1. Close MySQL
[root@localhost /] # service mysqld stopRedirecting to / bin/systemctl stop mysqld.service
Second, check the current installation of mysql to find out whether mysql was previously installed
[root@localhost /] # rpm-qa | grep-I mysqlmysql-community-client-8.0.13-1.el7.x86_64mysql-community-libs-8.0.13-1.el7.x86_64mysql-community-common-8.0.13-1.el7.x86_64mysql-community-server-8.0.13-1.el7.x86_64
Execute the command to delete the installed MySQL
[root@localhost /] # rpm-ev mysql-community-client-8.0.13-1.el7.x86_64
Error report:
Error: Failed dependencies:
Mysql-community-client (x86-64) > = 8.0.0 is needed by (installed) mysql-community-server-8.0.13-1.el7.x86_64
The reason is a dependent package error, and then execute the following command to solve the problem:
[root@localhost /] # rpm-ev mysql-community-client-8.0.13-1.el7.x86_64-- nodeps
The rest are also performed in accordance with the above operation, plus-- nodeps
Then execute the command # rpm-qa | grep-I mysql to see if the deletion is successful.
Four: check the directory of the previously installed MySQL and delete
[root@localhost /] # find /-name mysql/var/lib/mysql/var/lib/mysql/mysql/usr/lib64/mysql/usr/share/mysql [root@localhost /] # rm-rf / var/lib/mysql [root@localhost /] # rm-rf / var/lib/mysql/mysql [root@localhost /] # rm-rf / usr/lib64/mysql [root@localhost /] # rm-rf / usr/share/mysql
Five: delete my.cnf
/ etc/my.cnf will not be deleted after uninstallation and needs to be deleted manually
[root@localhost /] # rm-rf / etc/my.cnf
Finally, check to see if the uninstall is complete. No result indicates that the uninstall is complete.
[root@localhost /] # rpm-qa | grep-I mysql what is the Linux system Linux is a free to use and freely spread UNIX-like operating system, is a POSIX-based multi-user, multi-tasking, multi-threading and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
On how to uninstall the MySQL8.0 version in Linux to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.