Databases

Steps To Install MariaDB 10.4 On CentOS 7

In this article, we will learn how to install MariaDB 10.4 on CentOS 7.

For this demonstration, we are using CentOS 7.

MariaDB Server is one of the most popular open source relational databases.. MariaDB is a community-developed fork of the MySQL relational database management system. It is built upon the values of performance, stability, and openness, and MariaDB Foundation. Basically, it will organize and provide access to databases where our site can store information.MariaDB intended to maintain high compatibility with MySQL, ensuring a drop-in replacement capability with library binary parity and exact matching with MySQL APIs and commands.

1. Create a MariaDB repository

Open the setting MariaDB repositories page, choose a distro, release and version of the MariaDB you wish to install.

In this article, we are using MariaDB 10.4

Create the MariaDB.repo file in you favourite editor:

# vi /etc/yum.repos.d/MariaDB.repo

And add following lines:

# MariaDB 10.4 CentOS repository list
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]

name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

2. Now, start the installation of the MariaDB 10.4

# yum install MariaDB-client MariaDB-server

3. After it’s finished, start MariaDB:

# systemctl start mariadb.service

# systemctl enable mariadb.service

The installation is completed.

4. Secure the MySQL

To secure the MySQL installation, you should remove the anonymous user created during installation. To do so, run the following command:

# mysql_secure_installation

That’s it.

In this article, we have seen how our support engineers install MariaDB 10.4 on CentOS 7.

[Need assistance to fix this error or install tools? We’ll help you.]

Related Articles