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.

/usr/bin/mysql_secure_installation

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

Scan to Donate Bitcoin
Like this? Donate Bitcoin to at:
Bitcoin 13KzxfEoFPzt5ccoQvSkUEytTgQV8JN5ej
Donate
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!