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.
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:
MariaDB Enterprise Server includes features and fixes backported from later MariaDB versions. For details, see What's New in MariaDB Enterprise Server 10.6.
MariaDB Enterprise Server does not include plugins that are not supported for enterprise use. Before upgrading, review Differences in Available Plugins for Enterprise Server to confirm that the plugins you rely on are available.
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.
Take a full backup:
$ sudo mariadb-backup --backup \ --user=mariadb-backup_user \ --password=mariadb-backup_passwd \ --target-dir=/data/backup/preupgrade_backupConfirm successful completion of the backup operation.
Prepare the backup so that it is ready for immediate restoration if required:
$ sudo mariadb-backup --prepare \ --target-dir=/data/backup/preupgrade_backupConfirm successful completion of the prepare operation.
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:
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.
Set the innodb_fast_shutdown system variable to
1: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.
Stop the server process:
For distributions that use systemd (most supported OSes), you can manage the Server process using the
systemctlcommand:
Uninstall via YUM (RHEL, AlmaLinux, CentOS, Rocky Linux)
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:
Uninstall the Galera package as well.
For MariaDB Community Server 10.6, the package is called
galera-4:Before proceeding, verify that all MariaDB Community Server packages are uninstalled. The following command should not return any results:
Uninstall via APT (Debian, Ubuntu)
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.
Uninstall the Galera package as well.
For MariaDB Community Server 10.6, the package is called
galera-4:Before proceeding, verify that all MariaDB Community Server packages are uninstalled. The following command should not return any results:
Uninstall via ZYpp (SLES)
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.
Uninstall the Galera package as well.
For MariaDB Community Server 10.6, the package is called
galera-4: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).
Install via YUM (RHEL, AlmaLinux, CentOS, Rocky Linux)
Retrieve your Customer Download Token at https://customers.mariadb.com/downloads/token/ and substitute for
CUSTOMER_DOWNLOAD_TOKENin the following directions.Configure the YUM package repository. Installable versions of MariaDB Enterprise Server are
10.6,11.4, and11.8. Pass the version to install using the--mariadb-server-versionflag to mariadb_es_repo_setup. The following directions reference10.6.To configure YUM package repositories:
Checksums of the various releases of the
mariadb_es_repo_setupscript 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.
Install MariaDB Enterprise Server and package dependencies:
Installation of additional packages may be required for some plugins.
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)
Retrieve your Customer Download Token at https://customers.mariadb.com/downloads/token/ and substitute for
CUSTOMER_DOWNLOAD_TOKENin the following directions.Configure the APT package repository.
Installable versions of MariaDB Enterprise Server are
10.6,11.4, and11.8. Pass the version to install using the--mariadb-server-versionflag to mariadb_es_repo_setup. The following directions reference10.6.To configure APT package repositories:
Checksums of the various releases of the
mariadb_es_repo_setupscript 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.
Install MariaDB Enterprise Server and package dependencies:
Installation of additional packages may be required for some plugins.
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)
Retrieve your Customer Download Token at https://customers.mariadb.com/downloads/token/ and substitute for
CUSTOMER_DOWNLOAD_TOKENin the following directions.Configure the ZYpp package repository.
Installable versions of MariaDB Enterprise Server are
10.6,11.4, and11.8. Pass the version to install using the--mariadb-server-versionflag to mariadb_es_repo_setup. The following directions reference10.6.To configure ZYpp package repositories:
Checksums of the various releases of the
mariadb_es_repo_setupscript 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.
Install MariaDB Enterprise Server and package dependencies:
Installation of additional packages may be required for some plugins.
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.cnfOn 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.
Connect to the server with MariaDB Client using the
root@localhostuser account:The
-enterprisesuffix in the version string confirms that you are connected to MariaDB Enterprise Server rather than MariaDB Community Server.You can also verify the server version by checking the value of the version system variable with the SHOW GLOBAL VARIABLES statement:
You can also verify the server version by calling the VERSION() function:
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

