当前位置:网站首页>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
边栏推荐
猜你喜欢

Introduction and use of Drools WorkBench

Drools基本介绍,入门案例,基本语法

【银行系列第一期】中国人民银行
![The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]](/img/8a/28427aa773e46740eda9e95f6669f2.png)
The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]

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

How to do a startup CTO?

Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment

Intranet Infiltration - Privilege Escalation

知识蒸馏7:知识蒸馏代码详解

Tower of Hanoi problem
随机推荐
ShardingJDBC基本介绍
Force buckled brush the stairs (7/30)
AI software development process in medical imaging field
YOLOV5学习笔记(二)——环境安装+运行+训练
【银行系列第一期】中国人民银行
汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
16、热帖排行
SQL注入 Less54(限制次数的SQL注入+union注入)
mmdetection trains a model related command
The final exam first year course
Fiddler captures packets to simulate weak network environment testing
二层广播风暴(产生原因+判断+解决)
Unity3D Button 鼠标悬浮进入与鼠标悬浮退出按钮事件
直播预告 | KDD2022博士论文奖冠亚军对话
The difference between link and @import
Basic introduction to ShardingJDBC
Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
Problems that need to be solved by the tcp framework
12 磁盘相关命令
TCP/IP四层模型