当前位置:网站首页>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
边栏推荐
- 静态路由解析(最长掩码匹配原则+主备路由)
- 直播预告 | KDD2022博士论文奖冠亚军对话
- String为什么不可变?
- MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi
- 拒绝加班,程序员开发的效率工具集
- Real-time image acquisition based on FPGA
- MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
- execsnoop 工具
- Word/Excel fixed table size, when filling in the content, the table does not change with the cell content
- Software testing basic interface testing - getting started with Jmeter, you should pay attention to these things
猜你喜欢

General introduction to the Unity interface

Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue

Fiddler captures packets to simulate weak network environment testing

真正的CTO,是一个懂产品的技术人

19.支持向量机-优化目标和大间距直观理解

JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply
![LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING](/img/56/fcc8ee6f592abf0a374fc950a3362f.png)
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING

MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输

CorelDRAW2022精简亚太新增功能详细介绍

STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
随机推荐
The effective square of the test (one question of the day 7/29)
Between two orderly array of additive and Topk problem
Detailed explanation of STP election (step + case)
mysql 视图
The principle of complete replication of virtual machines (cloud computing)
Unity3D Button 鼠标悬浮进入与鼠标悬浮退出按钮事件
Project development software directory structure specification
16. Registration Center-consul
How to design the changing system requirements
[1154]如何将字符串转换为datetime
AI software development process in medical imaging field
经典链表OJ强训题——快慢双指针高效解法
【Bank Series Phase 1】People's Bank of China
Maximum area of solar panel od js
Hanyuan Hi-Tech 8-channel HDMI integrated multi-service high-definition video optical transceiver 8-channel HDMI video + 8-channel two-way audio + 8-channel 485 data + 8-channel E1 + 32-channel teleph
基于FPGA的图像实时采集
Static route analysis (the longest mask matching principle + active and standby routes)
Installation, start and stop of redis7 under Linux
MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
Manchester City confuses fans with smart scarf that detects emotions