MariaDB Install Centos - thiagobs-webdev/helptools GitHub Wiki
- Create file:
vi /etc/yum.repos.d/MariaDB.repo
- 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
- Update:
dnf update
- Run install:
dnf install MariaDB-server MariaDB-client
- Start/Enable/Status:
systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb
- Check:
mariadb -V
- Run security: https://mariadb.com/kb/en/mariadb-secure-installation/
mariadb-secure-installation