当前位置:网站首页>CentOS7下mysql5.7.37的卸载【完美方案】
CentOS7下mysql5.7.37的卸载【完美方案】
2022-07-31 02:30:00 【倾心*】
执行如下命令查看已经安装的mysql
[[email protected] ~]# rpm -qa|grep -i mysql
mysql-community-client-5.7.37-1.el7.x86_64
mysql-community-common-5.7.37-1.el7.x86_64
mysql-community-server-5.7.37-1.el7.x86_64
mysql-community-libs-5.7.37-1.el7.x86_64
mysql-community-libs-compat-5.7.37-1.el7.x86_64使用yum -y remove命令删除
#方式一 一次性全部删除
yum -y remove mysql*
#方式二 逐个逐个删除
yum -y remove mysql-community-client-5.7.37-1.el7.x86_64
yum -y remove mysql-community-common-5.7.37-1.el7.x86_64
yum -y remove mysql-community-server-5.7.37-1.el7.x86_64
yum -y remove mysql-community-libs-5.7.37-1.el7.x86_64
yum -y remove mysql-community-libs-compat-5.7.37-1.el7.x86_64保险起见一个一个删除 可能在删除某个安装包时 其他安装包也会跟着删除 为了卸载干净 这样操作也未尝不可
卸载以上安装包之后 查看有关mysql的目录 全部删除
[[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使用 rm -rf 命令将上面的目录依次删除 直至查询不到上述目录
[[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删除mysql配置文件
[[email protected] ~]# rm -rf /etc/my.cnf删除mysql默认密码
rm -rf /root/.mysql_history
rm -rf /root/mysql_secret至此mysql5.7.37已完美卸载
边栏推荐
- 公司官网建站笔记(六):域名进行公安备案并将备案号显示在网页底部
- What does a software test report contain?
- Between two orderly array of additive and Topk problem
- The difference between link and @import
- Crypto Life, a day in the life of a Web3 project partner
- 【Bank Series Phase 1】People's Bank of China
- Teach you how to configure Jenkins automated email notifications
- Drools Rule Properties, Advanced Syntax
- 用户交互+格式化输出
- Brute Force/Adjacency List Breadth First Directed Weighted Graph Undirected Weighted Graph
猜你喜欢

multiplayer-hlap 包有问题,无法升级的解决方案

What have I experienced to become a tester who is harder than development?

经典链表OJ强训题——快慢双指针高效解法

Force buckled brush the stairs (7/30)

Can an inexperienced college graduate switch to software testing?my real case

Introduction and use of Drools WorkBench

STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode

图像处理技术的心酸史

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

Crypto Life, a day in the life of a Web3 project partner
随机推荐
C language applet -- common classic practice questions
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING
To write good test cases, you must first learn test design
ShardingJDBC usage summary
验证整数输入
Calculate S=a+aa+…+aa…a
cudaMemcpy study notes
你们程序员为什么不靠自己的项目谋生?而必须为其他人打工?
"Cloud native's master, master and vulgar skills" - 2022 National New College Entrance Examination Volume I Composition
print task sorting js od huawei
uniapp uses 3rd party fonts
Static route analysis (the longest mask matching principle + active and standby routes)
Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
[1154] How to convert string to datetime
Basic learning about Redis related content
完整复制虚拟机原理(云计算)
怎样做好一个创业公司CTO?
AI中的数学思想
Between two orderly array of additive and Topk problem
汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络