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.
- A CentOS 7 installed dedicated server or KVM VPS.
- A root user access or normal user with administrative privileges.
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
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
2. Now, start the installation of the MariaDB 10.4
# yum install 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:
In this article, we have seen how to install MariaDB 10.4 on CentOS 7.