http://blog.csdn.net/love__coder/article/details/6894566
A) Check the system for MySQL installed in RPM package
- [Email protected] ~]# Rpm-qa | Grep-i MySQL
- Mysql-server-5.1.49-1.glibc23
- Mysql-client-5.1.49-1.glibc23
Uninstalling Mysql-server-5.1.49-1.glibc23 and Mysql-client-5.1.49-1.glibc23
- [Email protected] ~]# rpm-e mysql-client-5.1.49-1.glibc23
- [Email protected] ~]# rpm-e mysql-server-5.1.49-1.glibc23
b) See if there is a MySQL service
- [Email protected] ~]# Chkconfig--list | Grep-i MySQL
- MySQL 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Delete MySQL Service
- [[email protected] ~]# chkconfig--del MySQL
c) Delete the distributed MySQL folder
- [[email protected] ~]# Whereis MySQL
- MySQL:/usr/lib/mysql/usr/share/mysql
Delete separately
- [Email protected] lib]# rm-rf/usr/lib/mysql/
- [Email protected] lib]# Rm-rf/usr/share/mysql
Delete MySQL (RPM)