Home >Database >Mysql Tutorial >Centos中彻底删除Mysql(rpm、yum安装的情况)_MySQL

Centos中彻底删除Mysql(rpm、yum安装的情况)_MySQL

WBOY
WBOYOriginal
2016-06-01 13:04:44884browse

我用的centos6,mysql让我整出了各种问题,我想重装一个全新的mysql,yum remove mysql-server mysql之后再install并不能得到一个干净的mysql,原来的/etc/my.cnf依然没变,datadir里面的数据已没有任何变化,手动删除/etc/my.cnf,/usr/lib/mysql,/usr/share/mysql,/var/lib/mysql也不会起任何作用,各种查找之后发现应该是根本没删除干净

代码如下:


[root@data lib]# rpm -qa¦grep mysql
mysql-5.5.25-1.el6.remi.i686
mysql-libs-5.5.25-1.el6.remi.i686
compat-mysql51-5.1.54-1.el6.remi.i686
mysql-server-5.5.25-1.el6.remi.i686
[root@data lib]# yum remove mysql mysql-server mysql-libs compat-mysql51


这样才是完全给卸载了,然后重装就会得到一个全新的mysql。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn