How to Install MariaDB on CentOS7

MariaDB is an open source database management system that is derived from MySql. This relational database is an alternative to MySql, and the default database is the CentOS version 7 operating system. In this article, we will examine how to install this database on CentOS7.

Step One: Install

To install this database, run the command in the terminal.

To run the service of this database, run the following command.

To view the service status, run the following command.

The error is executed correctly. You will see the MySQL as the result of the execution of the command.

To run the MariaDB service automatically when the system starts up, run the following command.

Step Two: Securing

MariaDB, like MySQL, contains a security script that can be used to change some default options such as root password to execute the script, run the following command.

This script consists of several steps, each step containing a series of descriptions that you can easily complete the steps by reading the description. In the first step, the root password will ask you to type “Enter” in the second step. You will be prompted to change the root password. In the rest of the steps, the best security mode is configured, and just complete the steps by pressing the Y key at each step.

Step Three: Test

To test the correct installation of MariaDB, you can use the mysqladmin tool to run the following command.

By executing the above command, you will be asked to enter the root password of the database by entering the same output.

 

Related posts