In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Next, let's learn about the detailed steps of linux uninstalling mysql. I believe you will benefit a lot after reading it. The text is not much in essence. I hope that linux uninstalls the detailed steps of mysql. This short article is what you want.
Linux to uninstall mysql:
1. Check the installation of mysql first.
Rpm-qa | grep-I mysql
Shows that it was previously installed:
MySQL-client-5.5.25a-1.rhel5MySQL-server-5.5.25a-1.rhel5
2. Stop the mysql service and delete the package
Delete command: rpm-e-nodeps package name
Rpm-ev MySQL-client-5.5.25a-1.rhel5 rpm-ev MySQL-server-5.5.25a-1.rhel5
If prompted for a dependency package error, try using the following command
Rpm-ev MySQL-client-5.5.25a-1.rhel5-- nodeps
If it prompts an error: error:% preun (xxxxxx) scriptlet failed, exit status 1
Try it with the following command:
Rpm-e-noscripts MySQL-client-5.5.25a-1.rhel5
3. Find the directory of the previous version of mysql, and delete the files and libraries of the old version of mysql.
Find the catalog
Find /-name mysql
The search results are as follows:
/ var/lib/mysql/var/lib/mysql/mysql/usr/lib64/mysql
Delete the corresponding mysql directory
Rm-rf / var/lib/mysqlrm-rf / var/lib/mysqlrm-rf / usr/lib64/mysql
Note: / etc/my.cnf will not be deleted after uninstallation and needs to be deleted manually
Rm-rf / etc/my.cnf
4. Check again whether the machine is equipped with mysql.
Rpm-qa | grep-I mysql
No result, which means that it has been uninstalled completely, and then you can install mysql directly.
After reading this article on the detailed steps of uninstalling linux mysql, many readers will want to know more about it. For more industry information, you can follow our industry information section.
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.