How To Install MariaDB on CentOS 7

Install MariaDB on CentOS 7

For those of you who didn’t know, MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and performance improvements, and is easy to integrate into most MySQL deployments. MariaDB is widely used and several Linux distributions and large companies have already switched from MySQL to MariaDB.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation MariaDB on CentOS 7.

Install MariaDB on CentOS 7

Step 1. First, you need to enable repository on your system.

Navigate to /etc/yum.repos.d/ on your CentOS box and create a new file called MariaDB repo:

Step 2. Install MariaDB using Yum.

Make sure that all packages are up to date:

Start MariaDB and enable it to start on boot of the server:

Step 3. Configuring MariaDB.

The configuration files and binaries for MariaDB are mostly the same as MySQL. For example, both use a configuration file called my.cnf.

Step 4. Secure MariaDB after installation to.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.

Step 5. Login into MariaDB.

Login MariaDB with root credential which was set earlier:

Congratulation’s! You have successfully installed MariaDB. Thanks for using this tutorial for installing MariaDB on CentOS 7 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!