For the complete documentation index, see llms.txt. This page is also available as Markdown.

Upgrade from MariaDB Community Server to MariaDB Enterprise Server 10.6

Upgrade from MariaDB Community Server 10.6 to MariaDB Enterprise Server 10.6, switching products on the same release series to keep a maintained and supported server.

These instructions detail the upgrade from MariaDB Community Server 10.6 to MariaDB Enterprise Server 10.6 on a range of supported Operating Systems.

This page describes the minimal-change path: switching products while staying on the 10.6 release series. The recommended path is to upgrade directly to MariaDB Enterprise Server 11.8, the newest long-term release series, for a longer support runway — see Upgrade from MariaDB Community Server 10.6 to MariaDB Enterprise Server 11.8.

When switching from MariaDB Community Server to MariaDB Enterprise Server, the old version needs to be uninstalled, and the new version needs to be installed.

MariaDB Enterprise Server 10.6 is not identical to MariaDB Community Server 10.6:

Data Backup

Occasionally, issues can be encountered during upgrades. These issues can even potentially corrupt the database's data files, preventing you from easily reverting to the old installation. Therefore, it is generally best to perform a backup prior to upgrading. If an issue is encountered during the upgrade, you can use the backup to restore your MariaDB Server database to the old version. If the upgrade finishes without issue, then the backup can be deleted.

The instructions below show how to perform a backup using MariaDB Backup. For more information about backing up and restoring the database, please see the Recovery Guide.

  1. Take a full backup:

    $ sudo mariadb-backup --backup \
          --user=mariadb-backup_user \
          --password=mariadb-backup_passwd \
          --target-dir=/data/backup/preupgrade_backup

    Confirm successful completion of the backup operation.

  2. Prepare the backup so that it is ready for immediate restoration if required:

    $ sudo mariadb-backup --prepare \
          --target-dir=/data/backup/preupgrade_backup

    Confirm successful completion of the prepare operation.

  3. Verify that the backup is recoverable by restoring it to a non-production environment before proceeding with the upgrade.

Audit Plugin Considerations

If you have the MariaDB Audit Plugin installed, then the audit plugin should be removed prior to the upgrade to prevent conflict with the MariaDB Enterprise Audit Plugin that is included in MariaDB Enterprise Server 10.6.

The two plugins differ mainly in how audit logging can be filtered:

Capability
MariaDB Audit Plugin
MariaDB Enterprise Audit

Event selection

Global event types (connect, query, table)

Event filters defined per audit filter

Per-user control

Include/exclude user lists

Default and named per-user audit filters

Per-object control

Not available

Object filters for specific databases and tables

Configuration auditing

Not available

Changes to the audit configuration are logged

It can be removed by using the UNINSTALL SONAME statement:

And if you load the plugin in a configuration file using the plugin_load_add option — a mariadbd startup option that loads a plugin library when the server starts — then the option should also be removed.

The MariaDB Enterprise Audit Plugin will automatically be installed after installing MariaDB Enterprise Server 10.6.

Uninstall the Old Version

When upgrading to MariaDB Enterprise Server, it is necessary to remove the existing installation of MariaDB Community Server, before installing MariaDB Enterprise Server. Otherwise, the package manager will refuse to install MariaDB Enterprise Server.

Stop the MariaDB Server Process

Before the old version can be uninstalled, we first need to stop the current MariaDB Server process.

  1. Set the innodb_fast_shutdown system variable to 1:

  2. Use XA RECOVER to confirm that there are no external XA transactions in a prepared state:

    Commit or rollback any open XA transactions before stopping the node for upgrade.

  3. Stop the server process:

    For distributions that use systemd (most supported OSes), you can manage the Server process using the systemctl command:

Uninstall via YUM (RHEL, AlmaLinux, CentOS, Rocky Linux)

  1. Uninstall all of the MariaDB Community Server packages. Note that a wildcard character is used to ensure that all MariaDB Community Server packages are uninstalled:

    Be sure to check that this wildcard does not unintentionally refer to any of your custom applications:

  2. Uninstall the Galera package as well.

    For MariaDB Community Server 10.6, the package is called galera-4:

  3. Before proceeding, verify that all MariaDB Community Server packages are uninstalled. The following command should not return any results:

Uninstall via APT (Debian, Ubuntu)

  1. Uninstall all of the MariaDB Community Server packages. Note that a wildcard character is used to ensure that all MariaDB Community Server packages are uninstalled:

    Be sure to check that this wildcard does not unintentionally refer to any of your custom applications.

  2. Uninstall the Galera package as well.

    For MariaDB Community Server 10.6, the package is called galera-4:

  3. Before proceeding, verify that all MariaDB Community Server packages are uninstalled. The following command should not return any results:

Uninstall via ZYpp (SLES)

  1. Uninstall all of the MariaDB Community Server packages. Note that a wildcard character is used to ensure that all MariaDB Community Server packages are uninstalled:

    Be sure to check that this wildcard does not unintentionally refer to any of your custom applications.

  2. Uninstall the Galera package as well.

    For MariaDB Community Server 10.6, the package is called galera-4:

  3. Before proceeding, verify that all MariaDB Community Server packages are uninstalled. The following command should not return any results:

Install the New Version

MariaDB Corporation provides package repositories for YUM (RHEL, AlmaLinux, CentOS, Rocky Linux), APT (Debian, Ubuntu), and ZYpp (SLES).

If the server is a node in a Galera Cluster, also install the Enterprise Galera provider package, galera-enterprise-4, which replaces MariaDB Community Server's galera-4 package. Cluster nodes are also upgraded one node at a time — see Upgrading Galera Cluster for the cluster-specific procedure.

Install via YUM (RHEL, AlmaLinux, CentOS, Rocky Linux)

  1. Retrieve your Customer Download Token at https://customers.mariadb.com/downloads/token/ and substitute for CUSTOMER_DOWNLOAD_TOKEN in the following directions.

  2. Configure the YUM package repository. Installable versions of MariaDB Enterprise Server are 10.6, 11.4, and 11.8. Pass the version to install using the --mariadb-server-version flag to mariadb_es_repo_setup. The following directions reference 10.6.

    To configure YUM package repositories:

    1. Checksums of the various releases of the mariadb_es_repo_setup script can be found in the Versions section at the bottom of the MariaDB Package Repository Setup and Usage page. Substitute ${checksum} in the example above with the latest checksum.

  3. Install MariaDB Enterprise Server and package dependencies:

    Installation of additional packages may be required for some plugins.

  4. Configure MariaDB.

    Installation only loads MariaDB Enterprise Server to the system. MariaDB Enterprise Server requires configuration before the database server is ready for use.

Install via APT (Debian, Ubuntu)

  1. Retrieve your Customer Download Token at https://customers.mariadb.com/downloads/token/ and substitute for CUSTOMER_DOWNLOAD_TOKEN in the following directions.

  2. Configure the APT package repository.

    Installable versions of MariaDB Enterprise Server are 10.6, 11.4, and 11.8. Pass the version to install using the --mariadb-server-version flag to mariadb_es_repo_setup. The following directions reference 10.6.

    To configure APT package repositories:

    1. Checksums of the various releases of the mariadb_es_repo_setup script can be found in the Versions section at the bottom of the MariaDB Package Repository Setup and Usage page. Substitute ${checksum} in the example above with the latest checksum.

  3. Install MariaDB Enterprise Server and package dependencies:

    Installation of additional packages may be required for some plugins.

  4. Configure MariaDB.

    Installation only loads MariaDB Enterprise Server to the system. MariaDB Enterprise Server requires configuration before the database server is ready for use.

Install via ZYpp (SLES)

  1. Retrieve your Customer Download Token at https://customers.mariadb.com/downloads/token/ and substitute for CUSTOMER_DOWNLOAD_TOKEN in the following directions.

  2. Configure the ZYpp package repository.

    Installable versions of MariaDB Enterprise Server are 10.6, 11.4, and 11.8. Pass the version to install using the --mariadb-server-version flag to mariadb_es_repo_setup. The following directions reference 10.6.

    To configure ZYpp package repositories:

    1. Checksums of the various releases of the mariadb_es_repo_setup script can be found in the Versions section at the bottom of the MariaDB Package Repository Setup and Usage page. Substitute ${checksum} in the example above with the latest checksum.

  3. Install MariaDB Enterprise Server and package dependencies:

    Installation of additional packages may be required for some plugins.

  4. Configure MariaDB.

    Installation only loads MariaDB Enterprise Server to the system. MariaDB Enterprise Server requires configuration before the database server is ready for use.

Configuration

For platforms that use YUM or ZYpp as a package manager:

MariaDB Community Server's packages bundle several configuration files:

  • /etc/my.cnf

  • /etc/my.cnf.d/client.cnf

  • /etc/my.cnf.d/mysql-clients.cnf

  • /etc/my.cnf.d/server.cnf

If your version of any of these configuration files contained any custom edits, then the package manager may save your edited version with the .rpmsave extension during the upgrade process. If you want to continue using your version with the custom edits, then you may need to move it back. For example, to move server.cnf back in place:

In addition to the configuration files listed above, MariaDB Enterprise Server installs its own configuration file:

  • On platforms that use YUM or ZYpp: /etc/my.cnf.d/mariadb-enterprise.cnf

  • On platforms that use APT: /etc/mysql/mariadb.conf.d/mariadb-enterprise.cnf

This file provides MariaDB Enterprise Server defaults, some of which change behavior compared to a default MariaDB Community Server configuration:

  • Only plugins of stable maturity are loaded (plugin-maturity=stable).

  • The MariaDB Enterprise Audit Plugin is preloaded (with audit logging off by default).

  • The simple_password_check plugin is enabled, so new passwords must be at least 8 characters and include a digit, a special character, and both upper- and lowercase letters.

  • The InnoDB adaptive hash index is kept disabled (also the default in MariaDB Community Server 10.6).

Do not edit this file directly. To override its settings, add your own options in a separate configuration file whose name sorts later than mariadb-enterprise.cnf.

Starting the Server

MariaDB Enterprise Server includes configuration to start, stop, restart, enable/disable on boot, and check the status of the Server using the operating system default process management system.

For distributions that use systemd, you can manage the Server process using the systemctl command:

Operation

Command

Start

sudo systemctl start mariadb

Stop

sudo systemctl stop mariadb

Restart

sudo systemctl restart mariadb

Enable during startup

sudo systemctl enable mariadb

Disable during startup

sudo systemctl disable mariadb

Status

sudo systemctl status mariadb

Upgrading the Data Directory

MariaDB Enterprise Server ships with a utility that can be used to identify and correct compatibility issues in the new version. After you upgrade your Server and start the server process, run the mariadb-upgrade utility to upgrade the data directory:

Testing

When MariaDB Enterprise Server is up and running on your system, you should test that it is working and there weren't any issues during startup.

  1. Connect to the server with MariaDB Client using the root@localhost user account:

    The -enterprise suffix in the version string confirms that you are connected to MariaDB Enterprise Server rather than MariaDB Community Server.

  2. You can also verify the server version by checking the value of the version system variable with the SHOW GLOBAL VARIABLES statement:

  3. You can also verify the server version by calling the VERSION() function:


This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?