Updated: 19 November 2026 · Applies to: AlmaLinux 9 / Rocky Linux 9, Ubuntu 24.04, Debian 12 and cPanel & WHM 138 (MariaDB 11.4 LTS)

MariaDB 10.4, CentOS 7 and VestaCP are all end of life (VestaCP is no longer maintained). The current MariaDB long-term releases are 10.11, 11.4, 11.8 and 12.3. These steps upgrade MariaDB on AlmaLinux 9 / Rocky Linux 9 and Ubuntu/Debian; always upgrade one major version step at a time if your version is very old, and back up first.

1. Back up

mariadb-dump --all-databases --single-transaction --routines --events > /root/all-databases.sql

2. cPanel servers

Use WHM › Software › Upgrade Database Version. It checks compatibility, upgrades the packages and runs the upgrade steps for you. Do not add MariaDB repositories by hand on cPanel.

3. Other servers: MariaDB's repository

curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash -s -- --mariadb-server-version="mariadb-11.4"
# AlmaLinux / Rocky
systemctl stop mariadb
dnf install MariaDB-server MariaDB-client MariaDB-backup
#   if dnf reports a conflict: dnf remove mariadb-server mariadb  (the data in /var/lib/mysql stays), then install again
# Ubuntu / Debian
apt update && apt install mariadb-server
systemctl start mariadb
mariadb-upgrade

mariadb-upgrade updates the system tables. Check the version with mariadb -V and test your applications.

Note: Control panels such as CWP may manage MariaDB themselves; follow the panel's own upgrade tool when there is one. Read the MariaDB release notes for your target version: some settings are removed or change their defaults.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket