Install MariaDB 10.4/10.5/10.6/10.7/10.8/10.9/10.10/10.11/11.0/11.1/11.2/11.3/11.4 on CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9)

Install MariaDB 10.4/10.5/10.6/10.7/10.8/10.9/10.10/10.11/11.0/11.1/11.2/11.3/11.4 pada CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9)

  • Requirement:
yum update -y && yum install epel-release nano wget curl net-tools -y

  • Install MariaDB 10.4 (CentOS 7 / AlmaLinux 8 / RockyLinux 8)
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.4
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 10.5 (CentOS 7 / AlmaLinux 8 / RockyLinux 8)
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.5
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 10.6 (CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.6
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 10.7 (CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.7
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 10.8 (CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.8
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 10.9 (CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.9
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 10.10 (CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.10
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 10.11 (CentOS 7 / AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.11
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 11.0 (AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.0
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 11.1 (AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.1
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 11.2 (AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.2
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 11.3 (AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.3
yum install MariaDB-client MariaDB-server -y
  • Install MariaDB 11.4 (AlmaLinux (8|9) / RockyLinux (8|9))
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.4
yum install MariaDB-client MariaDB-server -y

  • Cek versi MariaDB
mariadb --version
--<output>---
mariadb  Ver 15.2 Distrib 11.4.2-MariaDB, for Linux (x86_64) using readline 5.1
  • Jalankan service mariadb
systemctl enable --now mariadb
  • Jalankan mariadb secure installation
mariadb-secure-installation
   Enter current password for root (enter for none):  <enter>
   Switch to unix_socket authentication [Y/n] n
   Change the root password? [Y/n] Y
   Remove anonymous users? [Y/n] Y
   Disallow root login remotely? [Y/n] Y
   Remove test database and access to it? [Y/n] Y
   Reload privilege tables now? [Y/n] Y
mysql -u root -p -e "show variables  where variable_name like 'version%';"
   Enter password:
+-------------------------+------------------------------------------+
| Variable_name           | Value                                    |
+-------------------------+------------------------------------------+
| version                 | 11.4.2-MariaDB                           |
| version_comment         | MariaDB Server                           |
| version_compile_machine | x86_64                                   |
| version_compile_os      | Linux                                    |
| version_malloc_library  | system                                   |
| version_source_revision | b74dbcb157b9c51952cdf40cd91c25d53513073e |
| version_ssl_library     | OpenSSL 3.0.13 30 Jan 2024               |
+-------------------------+------------------------------------------+

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.