How to Install MariaDB on CentOS Linux

In this tutorial will we install MariaDB on CentOS 7 using the default yum repositories.

What is MariaDB ?

MariaDB is an free and open source database server made by the original developers of MySQL. It is a drop-in replacement for MySQL.

Install MariaDB

1. Install MariaDB client and server

yum install mariadb mariadb-server -y

2. Enable and start MariaDB service

systemctl enable mariadb && systemctl start mariadb

3. Run the setup script, accepting all defaults. Note: You can set your database root password during this process.


MariaDB is now installed & running! The next step is to add users and databases.

Share This Post

About Author: Curtis K

Hi! My name is Curtis, and I am the author of CentOS Blog. Please feel free to comment with any suggestions, feedback or questions!