How to install MariaDB on CentOS 9 Stream
Introduction
MariaDB is an open-source relational database management system (DBMS) that is a compatible drop-in replacement for the widely used MySQL database technology. MariaDB is based on SQL and supports ACID-style data processing with guaranteed atomicity, consistency, isolation, and durability for transactions.
In this article, we will show you how to install MariaDB on a CentOS 9 stream server/VPS instance.
Prerequisite:
- An active KVM VPS
- root user
Install MariaDB
So, connect to a session via SSH or open a terminal.
After you do that, update the whole system with the command:
dnf update
Then, you can request information about the mariadb-server
package that is responsible for providing MariaDB
dnf info mariadb-server
Now, install MariaDB with the following command:
dnf install mariadb-server
More details about the installed package can be viewed from:
rpm -qi MariaDB-server
4. Start and enable MariaDB service:
systemctl enable mariadb
5. Secure MariaDB
mysql_secure_installation
6. Log in and check MariaDB version:
mysql -u root -p
That’s it! Enjoy GreenCloudVPS services!