Install Mariadb 10.11 in CentOS Stream 9/Almalinux 9/Rockylinux 9

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 :

[mariadb]
name = MariaDB
baseurl = https://mirror.23m.com/mariadb/yum/10.11/centos/9/x86_64/
gpgkey = https://mirror.23m.com/mariadb/yum/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 :

mysql_secure_installation

** 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

Back to top button