当前位置:网站首页>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_64
Use 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_64
To 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/mysql
Use 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/mysql
Delete the mysql configuration file
[[email protected] ~]# rm -rf /etc/my.cnf
Delete mysql default password
rm -rf /root/.mysql_historyrm -rf /root/mysql_secret
So far mysql5.7.37 has been uninstalled perfectly
边栏推荐
- Word/Excel fixed table size, when filling in the content, the table does not change with the cell content
- How to do a startup CTO?
- Drools Rule Properties, Advanced Syntax
- Layer 2 broadcast storm (cause + judgment + solution)
- First acquaintance with C language -- array
- 如何搭建私有yum源
- f.grid_sample
- Fiddler captures packets to simulate weak network environment testing
- 10 权限介绍
- coldfusion8 background scheduled tasks take shell
猜你喜欢
Static route analysis (the longest mask matching principle + active and standby routes)
Basic learning about Redis related content
CMOS和TTL的区别?
经典链表OJ强训题——快慢双指针高效解法
Face detection based on opencv
vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
Between two orderly array of additive and Topk problem
【Bank Series Phase 1】People's Bank of China
Manchester City confuses fans with smart scarf that detects emotions
随机推荐
TCP/IP四层模型
AI在医疗影像设备全流程应用
16、热帖排行
mycat的主从关系 垂直分库 水平分表 以及mycat分片联表查询的配置详解(mysql5.7系列)
Installation, start and stop of redis7 under Linux
FPGA-based vending machine
数学解决——环形链表问题
ShardingJDBC usage summary
tcp框架需要解决的问题
Classic linked list OJ strong training problem - fast and slow double pointer efficient solution
Huawei od dice js
Drools WorkBench的简介与使用
f.grid_sample
Tower of Hanoi problem
Clustering index, and what is the difference between a clustering index
19.支持向量机-优化目标和大间距直观理解
力扣刷题之有效的正方形(每日一题7/29)
15、网站统计数据
C language applet -- common classic practice questions
LeetCode Daily Question 2022/7/25-2022/7/31