skip to Main Content

This article will show you how to install MariaDB 10 on CentOS 6.7.

I will be assuming that you DO NOT already have MySQL installed, and that you are installing MariaDB 10 on a freshly installed, stock CentOS 6.7 installation.

 

1. Add the Official MariaDB Yum Repository

First off, we need to add the Office MariaDB Yum Repository.

Type in the following to add the MariaDB repository to your system:

nano /etc/yum.repos.d/MariaDB.repo

Next, you need to copy and paste the following content into the editor:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Type in CTRL-O to save, and CTRL-X to exit

 

2. Install MariaDB 10

Now you can install MariaDB 10, enter the following command:

yum -y install MariaDB-server MariaDB-client

Once the install has completed, start MariaDB. The command is similar to how you would start MySQL:

service mysql start

Now check to make sure that MariaDB 10 is installed:

mysql -v

You should see output similar to the following:

Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.0.21-MariaDB MariaDB Server

And you’re done!

Sponsored Links

Don't be shy, leave a reply!