CentOS6.4 install the MariaDB database

Source: Internet
Author: User
MySQL should be changed. The replacement remark comes from MariaDB of the same creator. I have no appetite for dinner tonight. CentOS6.4 under VMware; uses the official YUM source. The network speed here is not very good. well, even if it is not good, continue. Given the priority, the two databases are created by the same person. MySQL and MariaDB cannot be compatible in the same system without any processing. here, we adopt a unique approach to uninstall MySQL first, otherwise it cannot be installed.

MySQL should be changed. The replacement remark comes from MariaDB of the same creator. I have no appetite for dinner tonight. CentOS6.4 under VMware; uses the official YUM source. The network speed here is not very good. well, even if it is not good, continue. Given the priority, the two databases are created by the same person. In the same system, MySQL and MariaDB cannot be compatible without any processing. here, we adopt a unique approach. First, we need to uninstall MySQL. Otherwise, the installation will prompt:

Error: mysql conflicts with MariaDB-server-5.5.33a-1.x86_64

1. configure the YUM source officially provided by MariaDB:

[Root @ bogon Sources] # pwd
/Mnt/Sources
[Root @ bogon Sources] # uname-
Linux bogon 2.6.32-358. el6.x86 _ 64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[Root @ bogon Sources] # grep-v "^ #"/etc/yum. repos. d/CentOS-Media.repo

[Media]
Name = Local Sources
Baseurl = file: // media/cdrom/
File: // media/cdrom1/
Gpgcheck = 1
Enabled = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[Mariadb]
Name = MariaDB
Base url = http://yum.mariadb.org/5.5/centos6-amd64
Gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Gpgcheck = 1

2. run the yum installation command:

[Root @ bogon Sources] # yum install MariaDB-server MariaDB-client

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.