Uninstall the MARIADB database on Centos7, install MySQL

Source: Internet
Author: User

(1) List all installed RPM package

# Rpm-qa | grep mariadbmariadb-libs-5.5.50-1.el7_2.x86_64mariadb-5.5.50-1.el7_2.x86_64mariadb-server-5.5.50-1.el7_2.x86_64


(2) Uninstall

# RPM-E Mariadb-libs-5.5.50-1.el7_2.x86_64

Error at this time:

error: failed dependencies:    libmysqlclient.so.18 () (64bit)  is needed  by  (installed)  postfix-2:2.10.1-6.el7.x86_64    libmysqlclient.so.18 () ( 64bit)  is needed by  (installed)  perl-DBD-MySQL-4.023-5.el7.x86_64     libmysqlclient.so.18 () (64bit)  is needed by  (installed)   php-mysql-5.4.16-36.3.el7_2.x86_64    libmysqlclient.so.18 (libmysqlclient_18) (64bit)   is needed by  (installed)  postfix-2:2.10.1-6.el7.x86_64     libmysqlclient.so.18 (libmysqlclient_18) (64bit)  is needed by  (installed)   perl-dbd-mysql-4.023-5.el7.x86_64    libmysqlclient.so.18 (libmysqlclient_18) (64bit)   is needed by  (installed)  php-mysql-5.4.16-36.3.el7_2.x86_64     Mariadb-libs (x86-64)  = 1:5.5.50-1.EL7_2 IS NEEDED&NBsp;by  (installed)  mariadb-1:5.5.50-1.el7_2.x86_64    mariadb-libs (x86-64)  =  1:5.5.50-1.el7_2 is needed by  (installed)  mariadb-server-1:5.5.50-1.el7_2.x86_ 64


(3) Forced unloading, because there is no –nodeps

# rpm-e--nodeps mariadb-libs-5.5.50-1.el7_2.x86_64# rpm-e--nodeps mariadb-5.5.50-1.el7_2.x86_64# rpm-e--nodeps Maria Db-server-5.5.50-1.el7_2.x86_64


(4) You can then install MySQL.


Uninstall the MARIADB database on Centos7, install MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.