Linux下彻底卸载mysql详解(亲测)
链接在:https://www.cnblogs.com/nicknailo/articles/8563456.html
查看命令 :rpm -qa|grep -i mysql
删除命令:rpm -e –nodeps
包名
如果提示错误:error: %preun(xxxxxx) scriptlet failed, exit status 1
rpm -e --noscripts MySQL-client-5.5.25a-1.rhel5
查看所有MYSQL 的目录文件
find / -name mysql /var/lib/mysql /var/lib/mysql/mysql /usr/lib64/mysql 删除对应 rm -rf /var/lib/mysql rm -rf /var/lib/mysql rm -rf /usr/lib64/mysql rm -rf /etc/my.cnf rpm -qa|grep -i mysql