How to install MariaDB on CentOS 9 Stream

Estimated reading: 1 minute 0 views


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.


  • 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
MariaDB package info on CentOS 9 Stream

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


6. Log in and check MariaDB version:

mysql -u root -p

That’s it! Enjoy GreenCloudVPS services!

Leave a Comment