当前位置:网站首页>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已完美卸载
边栏推荐
- Draw Your Cards
- General introduction to the Unity interface
- Mathematics to solve the problem - circular linked list
- 19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
- [1154]如何将字符串转换为datetime
- 12 磁盘相关命令
- AI中的数学思想
- 图解lower_bound&upper_bound
- golang GUI for nuxui — HelloWorld
- 汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
猜你喜欢

221. Largest Square

MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi

tcp框架需要解决的问题

关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法

英特尔软硬优化,赋能东软加速智慧医疗时代到来

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

JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply

Word/Excel fixed table size, when filling in the content, the table does not change with the cell content
![LeetCode 1161 最大层内元素和[BFS 二叉树] HERODING的LeetCode之路](/img/56/fcc8ee6f592abf0a374fc950a3362f.png)
LeetCode 1161 最大层内元素和[BFS 二叉树] HERODING的LeetCode之路

Layer 2 broadcast storm (cause + judgment + solution)
随机推荐
Observer mode (1)
print task sorting js od huawei
The application of AI in the whole process of medical imaging equipment
What does a software test report contain?
934. The Shortest Bridge
直播预告 | KDD2022博士论文奖冠亚军对话
Drools WorkBench的简介与使用
f.grid_sample
曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
LeetCode 1161 最大层内元素和[BFS 二叉树] HERODING的LeetCode之路
英特尔软硬优化,赋能东软加速智慧医疗时代到来
ShardingJDBC基本介绍
Maximum area of solar panel od js
ShardingJDBC usage summary
跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
The effective square of the test (one question of the day 7/29)
关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法
Static routing + PAT + static NAT (explanation + experiment)
User interaction + formatted output
[1154]如何将字符串转换为datetime