https://blog.csdn.net/qq_41829904/article/details/92966943
https://www.cnblogs.com/javahr/p/9245443.html
查包名:rpm -qa|grep -i mysql
删除命令:rpm -e –nodeps 包名
//yum安装方式下载
1.查看已安装的mysql
命令:rpm -qa | grep -i mysql
2.卸载mysql
命令:yum remove mysql-community-server-5.6.36-2.el7.x86_64
查看mysql的其它依赖:rpm -qa | grep -i mysql
//卸载依赖
yum remove mysql-libs
yum remove mysql-server
yum remove perl-DBD-MySQL
yum remove mysql
find / -name mysql
/usr/share/mysql
/usr/local/mysql
/var/lib/mysql
/var/lib/mysql/mysql
rm -rf /etc/selinux/targeted/tmp/modules/100/mysql
rm -rf /etc/selinux/targeted/active/modules/100/mysql
rm -rf /usr/share/mysql
rm -rf /usr/local/mysql
rm -rf /var/lib/mysql
rm -rf /var/lib/mysql/mysql
rm -rf /etc/selinux/targeted/tmp/modules/100/mysql
rm -rf /etc/selinux/targeted/active/modules/100/mysql
rm -rf /opt/backup/etc_20210417bak.ddup/selinux/targeted/active/modules/100/mysql