MENU

#Linux运维教程#centos 7.4 64位 彻底卸载mysql5.6教程

December 6, 2018 • Linux阅读设置

检查是否安装了MySQL组件。
[root@mycloud]# rpm -qa | grep -i mysql
mysql-community-client-5.7.19-1.el7.x86_64
mysql-community-common-5.7.19-1.el7.x86_64
mysql-community-libs-compat-5.7.19-1.el7.x86_64
mysql-community-libs-5.7.19-1.el7.x86_64
qt-mysql-4.8.5-13.el7.x86_64
mysql57-community-release-el7-11.noarch
mysql-community-server-5.7.19-1.el7.x86_64
perl-DBD-MySQL-4.023-5.el7.x86_64

卸载前关闭MySQL服务

systemctl stop mysqld

yum -y remove mysql-community-client-5.7.19-1.el7.x86_64
yum -y remove mysql-community-common-5.7.19-1.el7.x86_64
yum -y remove mysql-community-libs-compat-5.7.19-1.el7.x86_64
yum -y remove mysql57-community-release-el7-11.noarch
yum -y remove mysql-community-server-5.7.19-1.el7.x86_64
删除MySQL对应的文件夹,检查各个MySQL文件夹是否清理删除干净。
whereis mysql
find / -name mysql

rm -rf 删除命令查找到的目录
确认MySQL是否卸载删除

rpm -qa | grep -i mysql