How to install MariaDB on a CentOS 7 VPS

How to install MariaDB on a CentOS 7 VPS

How to install MariaDB on a CentOS 7 VPS

In this tutorial we will show you how to install MariaDB on your CentOS 7 VPS.

WHAT IS MARIADB?

MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. Being a fork of a leading open source software system, it is notable for being led by the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle.

Installing MariaDB on a CentOS 7 VPS is pretty easy and straight forward procedure.


LET’S START

First, you will need to log in to your VPS as ROOT via SSH. Once you are in you can clean-up yum (this is not a necessary step but it won’t hurt). To do that just type:

yum clean all

Another step that you can take and it is always a good practice is to update your packages. To do that just type:

yum -y update

Now, we can install MariaDB. To do that just type:

yum install mariadb-server

Once the installation is done you can start the MariaDB service with the following command:

systemctl start mariadb.service

Also, you may want to execute:

/usr/bin/mysql_secure_installation

The above command will walk you through the process of setting up your root password and some basic security.

Make sure that MariaDB start automatically on the system boot:

systemctl enable mariadb.service

Congratulations, you have successfully installed MariaDB on CentOS 7!


If you’re one of our Linux VPS Hosting customers we can help you install MariaDB on your virtual server for you free of charge. Just contact us and some of our experts will complete your request immediately.