当前位置:网站首页>Detailed explanation of uninstalling MySQL completely under Linux
Detailed explanation of uninstalling MySQL completely under Linux
2022-07-24 09:54:00 【Salted fish also have dreams】
How to be in Linux Complete uninstall under MySQL Database ? The following article will give you a summary 、 Sort it out in Linux Completely uninstall under the platform MySQL Methods . The text is introduced in detail through graphics and text and example code , I believe it is very helpful for everyone to understand and learn , Here are friends who need to learn together .
One 、 Use the following command to view the current installation mysql situation , Find out if you have mysql
rpm -qa|grep -i mysql
As you can see in the figure below :

Show that you installed :
MySQL-client-5.5.25a-1.rhel5
MySQL-server-5.5.25a-1.rhel5
2、 stop it mysql service 、 Remove the previously installed mysql
The 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 you are prompted for a dependency package error , Then use the following command to try
rpm -ev MySQL-client-5.5.25a-1.rhel5 --nodeps
If prompted incorrectly :error: %preun(xxxxxx) scriptlet failed, exit status 1
Use the following command to try :
rpm -e --noscripts MySQL-client-5.5.25a-1.rhel5
3、 Find the old version before mysql The catalog of 、 And delete the old version mysql Files and Libraries
find / -name mysql
The results are as follows :
find / -name mysql /var/lib/mysql /var/lib/mysql/mysql /usr/lib64/mysql
Delete corresponding mysql Catalog
rm -rf /var/lib/mysql rm -rf /var/lib/mysql rm -rf /usr/lib64/mysql
The specific steps are shown in the figure : Find the directory and delete

Be careful : After uninstalling /etc/my.cnf Does not delete , Need to delete manually
rm -rf /etc/my.cnf
4、 Check whether the machine is installed again mysql
rpm -qa|grep -i mysql
边栏推荐
- How does SRE and development of Google cooperate
- 2022 trusted cloud authoritative assessment released: Tianyi cloud has obtained ten certifications and five best practices
- PHP Basics - PHP types
- 程序的编译与链接
- [STM32 learning] (15) STM32 realizes DHT11 temperature and humidity acquisition and display
- Synchronized scope "concurrent programming"
- Arduino drive Lora module node
- Li Kou 300 longest increasing subsequence dynamic programming
- [STM32 learning] (11) STM32 Mifare_ Use of one (S50) m1s50 (read, write, key modification, control bit interpretation)
- [don't bother to strengthen learning] video notes (II) 1. What is Q-learning?
猜你喜欢

07 Jason module

It is reported that the prices of some Intel FPGA chip products have increased by up to 20%

Do you really understand the concept of buffer? Take you to uncover the buffer zone~

Raspberry Pie: serial port login does not display print information

ASI-20220222-Implicit PendingIntent
![[don't bother with reinforcement learning] video notes (I) 2. Summary of reinforcement learning methods](/img/7e/cb5bf37de4482facda723f3de7deb6.jpg)
[don't bother with reinforcement learning] video notes (I) 2. Summary of reinforcement learning methods

Can the "self-help master" who has survived the economic crisis twice continue to laugh this time?
![[STM32 learning] (12) STM32 realizes LCD1602 simple static reality](/img/78/954ebaae0cce5d9387e7032fa85e60.png)
[STM32 learning] (12) STM32 realizes LCD1602 simple static reality

OPENCV学习DAY5

In the envy of LETV, there is a "meaning crisis" of contemporary workers
随机推荐
Leetcode skimming: dynamic planning 03 (climb stairs with minimum cost)
聚集日志服务器
[Luogu p5410] [template] extend KMP (Z function) (string)
Spark Learning: implement compact table command
Reading makes people improve my list
[robot learning] mechanism kinematics analysis and MATLAB simulation (3D model +word report +matlab program)
Racecar multi-point navigation experiment based on ROS communication mechanism
Simple parsing JSON strings with regular expressions
Cyclicbarrier and countdownlatch [concurrent programming]
ASI-20220222-Implicit PendingIntent
Friends come to interview a unicorn company in Beijing at leisure. The interview question is priced at 25K
[STM32 learning] (13) STM32 realizes ultrasonic ranging (hc-sr04)
[200 opencv routines] 236. Principal component analysis of feature extraction (openCV)
How to improve office efficiency through online collaborative documents
Common evaluation indexes of medical image segmentation
[don't bother to strengthen learning] video notes (II) 2. Write a small example of Q learning
It's eleven again. Those jokes about nagging programmers going home for blind dates
PHP Basics - PHP types
What is the cloud native mid platform business architecture?
PHP Basics - PHP magic method