Jump to content

Install Mariadb 10.11 in CentOS Stream 9 Almalinux 9 Rockylinux 9

Recommended Posts

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.

To Install Mariadb 10.11 in Centos 9 stream/almalinux 9/rockylinux 9 do this :
Now edit/create the Repo file :

Ensure you don’t have any other MariaDB repo file in /etc/yum.repos.d if exists delete or backup the existing repo file then create the repo file :

nano /etc/yum.repos.d/mariadb.repo

add this lines and save it :

name = MariaDB
baseurl = https://rpm.mariadb.org/10.11/centos/$releasever/$basearch
module_hotfixes = 1
gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck = 1

After that update Mariadb 10.11 :

yum clean all
yum install MariaDB-server MariaDB-client net-snmp perl-DBD-MySQL -y
yum update -y

No follow on screen setup by running this command :


** if you installed fresh copy of MAriadb just now and this command is asking password just hit Enter button

To login to the MariaDB server, enter the following command with the password that was set previously,

mysql -u root -p

Done you’ve installed Mariadb 10.11 on Centos 9/EL9

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...