补充1.Centos卸载mysql
[if !supportLists]1. [endif]查找已经安装的mysq [root@localhost ~]# rpm -qa | grep -i mysql
[if !supportLists]2. [endif]开始卸载 [root@localhost ~]# yum -y remove mysql-*
3.查看是否卸载完成 [root@localhost ~]# rpm -qa | grep -i mysql
4.继续卸载到 [root@localhost ~]# yum remove mysql80-community-release-el7-3.noarch
5.查找相关目录 [root@localhost ~]# find / -name mysql
6.删除相关目录 rm -rf
7.删除/etc/my.cnf [root@localhost ~]#rm -rf /etc/my.cnf
8.删除/var/log/mysqld.log(否则无法生成新密码)