In this article, we will learn how to install MariaDB 10.5 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.
how to Install MariaDB 10.5 on CentOS
1. Keep the server updated
# yum update -y
2. 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.5 CentOS repository list
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
save and exit.
Now, update the repository.
# yum update -y
3. Now, start the installation of the MariaDB 10.5
# yum install mariadb-server
4. After it’s finished, start MariaDB:
# systemctl start mariadb.service && systemctl enable mariadb.service
The installation is completed.
5. 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.5 on CentOS 7.