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.