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!