CentOS删除mysql

1.查询是否有安装mysql

rpm -qa | grep -i mysql
mysql-community-client-5.7.23-1.el7.x86_64
mysql57-community-release-el7-8.noarch
mysql-community-libs-5.7.23-1.el7.x86_64
mysql-community-common-5.7.23-1.el7.x86_64
mysql-community-server-5.7.23-1.el7.x86_64

rpm -ev mysql-community-server-5.7.23-1.el7.x86_64
rpm -ev mysql57-community-release-el7-8.noarch
rpm -ev mysql-community-client-5.7.23-1.el7.x86_64
rpm -ev mysql-community-libs-5.7.23-1.el7.x86_64
rpm -ev mysql-community-common-5.7.23-1.el7.x86_64

whereis mysql
find / -name mysql

/var/lib/pcp/config/pmlogconf/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/etc/selinux/targeted/active/modules/100/mysql
/etc/selinux/targeted/tmp/modules/100/mysql
/usr/share/mysq


rm -rf /var/lib/pcp/config/pmlogconf/mysql
rm -rf /var/lib/mysql
rm -rf /var/lib/mysql/mysql
rm -rf /etc/selinux/targeted/active/modules/100/mysql
rm -rf /etc/selinux/targeted/tmp/modules/100/mysql
rm -rf /usr/share/mysql

yum remove mysql-community-client mysql-community-common mysql-community-libs mysql-community-libs-compat mysql-community-server mysql57-community-release

最后编辑于:2020/11/5作者: 编程小战

我不入地狱,谁入地狱?

评论已关闭