当前位置:网站首页>Uninstallation of mysql5.7.37 under CentOS7 [perfect solution]
Uninstallation of mysql5.7.37 under CentOS7 [perfect solution]
2022-07-31 02:39:00 【fascinated*】
Execute the following command to view the installed mysql
[[email protected] ~]# rpm -qa|grep -i mysqlmysql-community-client-5.7.37-1.el7.x86_64mysql-community-common-5.7.37-1.el7.x86_64mysql-community-server-5.7.37-1.el7.x86_64mysql-community-libs-5.7.37-1.el7.x86_64mysql-community-libs-compat-5.7.37-1.el7.x86_64Use the yum -y remove command to remove
#Method 1 Delete all at onceyum -y remove mysql*#Method 2 Delete one by oneyum -y remove mysql-community-client-5.7.37-1.el7.x86_64yum -y remove mysql-community-common-5.7.37-1.el7.x86_64yum -y remove mysql-community-server-5.7.37-1.el7.x86_64yum -y remove mysql-community-libs-5.7.37-1.el7.x86_64yum -y remove mysql-community-libs-compat-5.7.37-1.el7.x86_64To be safe, delete one by one, maybe when you delete a certain installation package, other installation packages will also be deleted in order to uninstall it cleanly.
After uninstalling the above installation package, check the directory about mysql and delete it all
[[email protected] ~]# find / -name mysql/etc/logrotate.d/mysql/var/lib/mysql/var/lib/mysql/mysql/usr/bin/mysql/usr/lib64/mysql/usr/share/mysql/usr/local/software/mysqlUse the rm -rf command to delete the above directories in turn until the above directories cannot be queried
[[email protected] ~]rm -rf /etc/logrotate.d/mysql[[email protected] ~]rm -rf /var/lib/mysql[[email protected] ~]rm -rf /var/lib/mysql/mysql[[email protected] ~]rm -rf /usr/bin/mysql[[email protected] ~]rm -rf /usr/lib64/mysql[[email protected] ~]rm -rf /usr/share/mysql[[email protected] ~]rm -rf /usr/local/software/mysqlDelete the mysql configuration file
[[email protected] ~]# rm -rf /etc/my.cnfDelete mysql default password
rm -rf /root/.mysql_historyrm -rf /root/mysql_secretSo far mysql5.7.37 has been uninstalled perfectly
边栏推荐
- 关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法
- 跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
- Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
- YOLOV5学习笔记(二)——环境安装+运行+训练
- STP选举(步骤+案列)详解
- Intranet Infiltration - Privilege Escalation
- First acquaintance with C language -- array
- 拒绝加班,程序员开发的效率工具集
- LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING
- ShardingJDBC基本介绍
猜你喜欢

Intel's software and hardware optimization empowers Neusoft to accelerate the arrival of the era of smart medical care

汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络

Intranet Infiltration - Privilege Escalation

自动化办公案例:如何自动生成期数据?

Problems that need to be solved by the tcp framework

Mathematics to solve the problem - circular linked list

Static route analysis (the longest mask matching principle + active and standby routes)

19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing

Basic introduction to ShardingJDBC

力扣刷题之爬楼梯(7/30)
随机推荐
golang GUI for nuxui — HelloWorld
First acquaintance with C language -- array
MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
BAT卖不动「医疗云」:医院逃离、山头林立、行有行规
关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法
coldfusion8 background scheduled tasks take shell
Maximum area of solar panel od js
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING
自动化办公案例:如何自动生成期数据?
力扣刷题之有效的正方形(每日一题7/29)
系统需求多变如何设计
16、热帖排行
LeetCode Daily Question 2022/7/25-2022/7/31
Manchester City confuses fans with smart scarf that detects emotions
Difference between CMOS and TTL?
知识蒸馏7:知识蒸馏代码详解
execsnoop 工具
怎样做好一个创业公司CTO?
Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
AtCoder Beginner Contest 261 Partial Solution