Install MariaDB

RHEL 10 provides MariaDB 10.11 as the initial version of the Application Stream, which you can install as an RPM package. In minor releases, RHEL 10 provides additional MariaDB versions as application streams with a shorter life cycle.

About this task

In RHEL 10, the MariaDB server is available in the following versions, each provided by a separate stream:

  • MariaDB 10.11
  • MariaDB 11.8 - available since RHEL 10.2
Important

By design, you can install only one version (stream) of the same application stream and, because of conflicting RPM packages, you cannot install MariaDB and MySQL on the same host. As an alternative, you can run the database server services in a container. See Using containers to run multiple MariaDB and MySQL instances on a single host.

Procedure

  1. Install MariaDB server packages:
    • For MariaDB 10.11, enter:
      # dnf install mariadb-server
    • For MariaDB 11.8, enter:
      # dnf install mariadb11.8-server
  2. Enable and start the mariadb service:
    # systemctl enable --now mariadb.service