centos6.4卸载mysql安装MariaDB(yum)

关闭目前的mysql服务

<!-- lang: shell -->
#/etc/init.d/mysqld stop

确保已正常关闭

<!-- lang: shell -->
#ps -ef | grep mysql

查询mysql的安装情况:

<!-- lang: shell -->
#rpm -qa | grep mysql

将列出来的删除。

<!-- lang: shell -->
#rpm -e mysql-server.x86_64

这里有些朋友可能会出错,形如:

<!-- lang: shell -->
[root@centos-dev halc]# rpm -e mysql-libs-5.1.69-1.el6_4.i686

error: Failed dependencies:

    libmysqlclient.so.16 is needed by (installed) postfix-2:2.6.6-2.2.el6_1.i686

    libmysqlclient.so.16(libmysqlclient_16) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.i686

    mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.i686

用这个就好了

<!-- lang: shell -->
#rpm -e --nodeps mysql-libs-5.1.69-1.el6_4.i686

之后就能安装MariaDB了。

yum安装MariaDB的方法,去MariaDB的官网上,那里有详细说明

你可能感兴趣的:(mariaDB,centos,yum,写在mysql)