卸载
防止重装
- yum方式
查看yum是否安装过mysql yum list installed mysql*
如或显示了列表,说明系统中有MySQL
yum卸载
根据列表上的名字
yum remove mysql-community-client mysql-community-common mysql-community-libs mysql-community-libs-compat mysql-community-server mysql57-community-release rm -rf /var/lib/mysql rm /etc
rpm查看安装
rpm -qa | grep -i mysql
rpm 卸载
rpm -e my rpm -e my rpm -e my rpm -e my rpm -e my rpm -e my cd /var/lib/ rm -rf mysql/
清除余项
whereis mysql mysql: /usr/bin/mysql /usr/lib64/mysql /usr/local/mysql /usr/share/mysql /usr/share/man/man1 #删除上面的文件夹 rm -rf /usr/bin/mysql
…
…
我就省略了
删除配置
rm –rf /usr rm -rf /root/.mysql_sercret
剩余配置检查
chkconfig --list | grep -i mysql chkconfig --del mysqld
根据上面的列表,删除 ,如:mysqld