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/modu