nano /etc/yum.repos.d/MariaDB.repo
//paste the following and save
[mariadb]
name = MariaDB
baseurl = https://rpm.mariadb.org/11.4/almalinux/$releasever/$basearch
gpgkey= https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
then,
dnf install MariaDB-server