http://blog.csdn.net/love__coder/article/details/6894566
a)查看系统中是否以rpm包安装的mysql
- [[email protected] ~]# 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
- [[email protected] ~]# rpm -e MySQL-client-5.1.49-1.glibc23
- [[email protected] ~]# rpm -e MySQL-server-5.1.49-1.glibc23
b)查看有没有mysql服务
- [[email protected] ~]# chkconfig --list | grep -i mysql
- mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
删除mysql服务
- [[email protected] ~]# chkconfig --del mysql
c)删除分散mysql文件夹
- [[email protected] ~]# whereis mysql
- mysql: /usr/lib/mysql /usr/share/mysql
分别删除
- [[email protected] lib]# rm -rf /usr/lib/mysql/
- [[email protected] lib]# rm -rf /usr/share/mysql
时间: 2024-10-10 23:57:13