a)查看系統中是否以rpm包安裝的mysql
[root@linux ~]# rpm -qa | grep -i mysql MySQL-server-5.1.49-1.glibc23 MySQL-client-5.1.49-1.glibc23卸載MySQL-server-5.1.49-1.glibc23和MySQL-client-5.1.49-1.glibc23
[root@linux ~]# rpm -e MySQL-client-5.1.49-1.glibc23 [root@linux ~]# rpm -e MySQL-server-5.1.49-1.glibc23b)查看有沒有mysql服務
[root@linux ~]# chkconfig --list | grep -i mysql mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off刪除mysql服務
[root@linux ~]# chkconfig --del mysql
[root@linux ~]# whereis mysql mysql: /usr/lib/mysql /usr/share/mysql分別刪除
[root@linux lib]# rm -rf /usr/lib/mysql/ [root@linux lib]# rm -rf /usr/share/mysql通過以上幾步,mysql應該已經完全卸載乾淨了