Step 1: Add the MariaDB repo to your system. The script below must be run as root.
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
Step 2: Install MariaDB server and client
sudo yum install MariaDB-server MariaDB-client -y
Step 3: Start the initial MariaDB service
sudo systemctl start mariadb.service
Step 4: Set the MariaDB service to auto-start
sudo systemctl enable mariadb.service
Step 5: Secure your installation. The below script will ask a series of questions.
sudo /usr/bin/mysql_secure_installation
Source: https://mariadb.com/kb/en/the-mariadb-library/mariadb-package-repository-setup-and-usage/
Source: https://www.vultr.com/docs/how-to-install-mariadb-10-1-on-centos-7