MariaDB Install Centos - thiagobs-webdev/helptools GitHub Wiki

# Setup Repo: https://mariadb.org/download/?t=repo-config&d=CentOS+Stream&v=11+Rolling&r_m=gigenet

  1. Create file:
vi /etc/yum.repos.d/MariaDB.repo
  1. Insert data:
# MariaDB 11 Rolling CentOS repository list - created 2024-09-03 23:01 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = [https://rpm.mariadb.org/11.rolling/centos/$releasever/$basearch](https://rpm.mariadb.org/11.rolling/centos/)
baseurl = [https://mirrors.gigenet.com/mariadb/yum/11.rolling/centos/$releasever/$basearch](https://mirrors.gigenet.com/mariadb/yum/11.rolling/centos/)
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://mirrors.gigenet.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1
  1. Update:
dnf update
  1. Run install:
dnf install MariaDB-server MariaDB-client
  1. Start/Enable/Status:
systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb
  1. Check:
mariadb -V
  1. Run security: https://mariadb.com/kb/en/mariadb-secure-installation/
mariadb-secure-installation