查看mysql安装情况
1 | rpm -qa|grep -i mysql |
1 | [root@iZ25rsnm9crfk8Z ~]# rpm -qa|grep -i mysql |
停止mysql服务
1 | /etc/init.d/mysqld stop |
同上删除所有安装的mysql
1 | rpm -ev mysql-community-libs-5.7.13-1.el6.x86_64 --nodeps |
1 | [root@iZ25rsnm9crfk8Z ~]# rpm -ev mysql-community-server-5.7.13-1.el6.x86_64 --nodeps |
查找所有mysql目录并删除
1 | find / -name mysql |
1 | [root@iZ25rsnm9crfk8Z ~]# find / -name mysql |
删除 :
1 | rm -rf /var/lib/mysql |
删除/etc/my.cnf
1 | rm -f /etc/my.cnf |
确认是否删除完毕
1 | find / -name mysql |