Upgrade MariaDB 10.6 on Your cPanel VPS Before Repo Errors Hit
MariaDB 10.6 is end of life. Back up, run the WHM upgrade checker, pick 10.11 or 11.4, read the log and fix the MariaDB106 repo error on your cPanel VPS.
The short answer
MariaDB 10.6 reached end of life on 6 July 2026, and its final release was 10.6.28 on 13 August 2026, so it gets no more security fixes. On a cPanel server, take a database dump and check it is not empty, run the checker in WHM's Upgrade Database Version tool, then upgrade straight to a supported version such as 10.11 or 11.4. cPanel does not support downgrades, so your backup or a server snapshot is the only way back.

Reading options
On this page
Before you start
Root and WHM access; an application compatibility inventory; an off-server, verified backup or recoverable server snapshot; a maintenance window and recovery-console access; enough free disk space; and confirmation that MySQL Governor is not managing the database. cPanel does not support downgrades.
If your cPanel server still runs MariaDB 10.6, plan a move to a supported version such as 10.11 or 11.4. Do it with WHM's own upgrade tool after a tested backup, at a time you choose. MariaDB 10.6 reached end of life on 6 July 2026, and its final release, 10.6.28, came out on 13 August 2026. The MariaDB Foundation has said plainly there will be no 10.6.29.
Around the same time, the MariaDB archive removed the old CentOS 8 folders that many cPanel servers still pointed at. On 15 August 2026 an AlmaLinux 8 server owner posted on the cPanel community forum that a routine cPanel update had failed with Errors during downloading metadata for repository 'MariaDB106'. The update simply could not find the old 10.6 packages any more.
This guide is for root users of a VPS or dedicated server running WHM. If you only want to know which database version your WordPress site uses on shared hosting, read how to check your WordPress MySQL version instead, and let your host handle the server side. Here we do the server admin part, from backup and checker through to the log and what "rollback" really means. By the end you will be able to move a cPanel server off 10.6 in one planned maintenance window, and fix the repo error if it has already hit you.
What MariaDB 10.6 end of life actually means
MariaDB is the database server. It stores the posts, orders, users and settings for every site on your server.
End of life means the MariaDB Foundation no longer ships fixes for that version. If a security bug is found in 10.6 next month, nobody will patch it. Your server keeps working, but it gets a little more exposed every month, and package repositories for it can move or disappear without warning, as the August change showed.
Think of a car model the maker no longer supports. It still drives, but when a part breaks the dealer has none. Upgrading is visiting the garage on your schedule, not on the roadside.
The WordPress hosting handbook agrees. At the time of writing (28 November 2026) it lists MariaDB 12.3, 11.8, 11.4 and 10.11 as recommended LTS versions, and it says it is "highly recommended to upgrade to a supported version for security and performance reasons." LTS means long term support: a release line that gets fixes for several years.
Before you start
- Root SSH access to the server, or WHM's Terminal as
root. - WHM login as
root(resellers only get the upgrade tool if the provider enabled it). - A list of the sites and apps on the server that use databases, so you can test them afterwards.
- Enough free disk space for a full database dump next to your normal backups.
- A maintenance window. Sites that use MySQL are down while the database service is stopped, and large or numerous databases make that longer.
- A note to your customers, if you host other people's sites.
- About 30 to 90 minutes for a small or medium server. This is a made-up planning range, not a cPanel figure. Yours depends on database size.
- Risk level: medium. The upgrade does not delete data, but there is no supported downgrade, so your backup is your only way back.
Heads up: if CloudLinux MySQL Governor is installed, cPanel says upgrades will not work through the WHM interface. cPanel tells you to read CloudLinux's MySQL Governor documentation and work out how this affects you. Check this before you plan the window.
Quick tip: if your VPS provider offers server snapshots, take one just before you start. A snapshot is a copy of the whole disk at one moment. It is a second safety net next to your database dumps.
Step by step: upgrade MariaDB 10.6 in WHM
Step 1: Confirm the version you are running
Log in over SSH as root. This command prints the version of the database client installed on the server.
mysql --versionOn newer MariaDB installs the client is also available under the name mariadb, so this works too.
mariadb --versionYou should see a line with a number like 10.6.28-MariaDB. The server version is what matters, so ask the running server directly.
mysql -e "SELECT VERSION();"If it asks for a password, add -p. You should see one row, for example 10.6.28-MariaDB. If it starts with 8.0 or 8.4, you are on MySQL; read the MySQL 8 note in Step 4.
Step 2: Take a full backup and check it
Why this matters: cPanel does not support downgrades. If the upgrade goes wrong, the only documented way back is restoring from backup. A backup you have never checked is a hope, not a plan.
First, open WHM > Backup > Backup Configuration and confirm backups are enabled and the last run finished. Accounts can later be restored from WHM > Backup > Backup Restoration. If you want a deeper walkthrough, see how to back up a cPanel site, keep an offsite copy and test the restore.
Then take a plain SQL dump of the databases, just for this upgrade. These commands create a dated folder and check how much space is free there.
umask 077
backup_dir="/root/db-backup-$(date +%F-%H%M%S)"
install -d -m 700 "$backup_dir"
df -h /root
printf 'Backup directory: %s\n' "$backup_dir"Keep the printed path. The commands below assume you stay in the same shell. If you reconnect, set backup_dir again to that exact printed path before continuing.
This command dumps one database. Replace example_wp with a real database name. You can list them all with mysql -e "SHOW DATABASES;".
mysqldump --single-transaction --routines --triggers --events example_wp > "$backup_dir/example_wp.sql"The --single-transaction option gives a consistent copy of InnoDB tables. The --routines, --triggers and --events options make sure stored procedures, triggers and scheduled events go into the file too.
To dump every database on the server into one file, use this instead.
mysqldump --all-databases --single-transaction --routines --events > "$backup_dir/all_databases.sql"Now check the files are real. This prints each file's size and warns you if any dump came out empty.
ls -lh "$backup_dir"
for f in "$backup_dir"/*.sql; do
test -s "$f" && echo "OK: $f is not empty" || echo "PROBLEM: $f is empty"
doneYou should see sizes that look sensible for your sites, and only OK lines. Then copy the folder somewhere off the server, because a backup on the same disk does not help if the disk is the problem.
Quick tip: on MariaDB, mysqldump is the older name for mariadb-dump. MariaDB's docs say the old name still works through a link on Linux, though that link is deprecated from MariaDB 11.0, so either name is fine here.
Step 3: Run the upgrade checker
The checker reports problems before they become a failed upgrade.
In WHM, open WHM > Database Services > Upgrade Database Version. On cPanel and WHM 118 and older the same tool was called WHM > SQL Services > MySQL/MariaDB Upgrade. Click Install and Run Checker, wait for the progress window, then fix any issues it lists and click Re-Run Checker. Carry on only when no new issues appear.
You can do the same from SSH. This command starts the checker in the background.
whmapi1 background_mysql_upgrade_checker_runThe output includes a log_entry value. Put that value in the path below to read the result.
cat /var/cpanel/logs/LOG_ENTRY_VALUE/txtcPanel's support article says all errors in that log must be fixed before you continue. It also notes the checker was built mainly for MySQL 5.7 to 8.0 problems, so on newer versions it may report an error you can safely ignore. If you are not sure whether an error is one of those, ask cPanel support before going further.
Step 4: Choose your target version
This command lists the versions your server can upgrade to right now.
whmapi1 installable_mysql_versionsWhat you see depends on your cPanel version and operating system. At the time of writing (28 November 2026), cPanel's supported versions page for cPanel and WHM 136 and later lists MariaDB 10.5, 10.6, 10.11, 11.4 and 11.8 on AlmaLinux and CloudLinux 8 and 9. For cPanel 126 to 130, the list stops at 11.4. MariaDB 10.11 is what cPanel installs by default on a new server.
How to choose, in plain terms:
- 10.11 is the smallest jump from 10.6 and cPanel's default for new servers. A sensible choice if you host older apps.
- 11.4 is a newer LTS line and a bigger step. Pick it if your apps are reasonably current.
- 11.8 appears only on newer cPanel versions. Use it only if your server lists it and your apps are tested on it.
You do not need to step through versions one by one. cPanel's upgrade information page says the system performs the stepped upgrades itself, so you can start the upgrade straight to your target.
Heads up: three one-way rules from cPanel's docs. Downgrades are not supported. Moving from MySQL to MariaDB cannot be undone. And MySQL 8 cannot move to MariaDB 10.x at all, because the two are not compatible.
Made-up example: Ravi runs a VPS with 40 WordPress sites and one old PHP booking script. He picks 10.11, the smaller change for that script, and plans a later move to 11.4 once he has tested it on a staging copy.
Step 5: Check your my.cnf for removed options
The upgrade validates /etc/my.cnf before it starts. MariaDB's 10.6 to 10.11 upgrade notes list options that no longer exist and must be removed or renamed. This command shows whether any of them are in your file.
grep -nE "innodb_log_write_ahead_size|innodb_version|wsrep_replicate_myisam|wsrep_strict_ddl|keep_files_on_create" /etc/my.cnfNo output means you are clear. If a line appears, copy the file first, then remove or comment out that option.
cp -a /etc/my.cnf "$backup_dir/my.cnf.before-upgrade"The two wsrep options matter only for Galera clusters and were replaced by wsrep_mode. keep_files_on_create still works but is deprecated.
Step 6: Start the upgrade
In WHM > Database Services > Upgrade Database Version, select your target version and click Continue. WHM shows warnings and checks /etc/my.cnf. Tick the box next to each warning, then click Continue again.
Next, choose Unattended Upgrade, which runs on its own, or Interactive Upgrade, which walks you through each step. cPanel suggests Interactive if you are, or have access to, an experienced database administrator. Click Continue to open the progress screen, where Autoscroll output keeps the newest lines in view.
From SSH, this command starts the same upgrade. Change 10.11 to the version you chose in Step 4.
whmapi1 start_background_mysql_upgrade version=10.11The output includes an upgrade_id. Use it in this command to follow the upgrade live, and press Ctrl+C to stop watching when it finishes.
tail -f /var/cpanel/logs/UPGRADE_ID_VALUE/unattended_background_upgrade.logWhen it ends, WHM shows a message saying the upgrade succeeded or listing errors you must fix.
Step 7: Read the upgrade log
Even on success, skim the log. cPanel writes it to /var/cpanel/logs, named with the date and time of the run in the form mysql_upgrade_log.YYYYMMDD-hhmmss. This command lists the newest ones.
ls -lt /var/cpanel/logs/ | grep -i mysql_upgrade | headOpen the newest one and search it for problems. cPanel's docs describe this log both as a file and as a folder, so the command below searches either. It prints any line that mentions an error or warning.
latest_log=$(find /var/cpanel/logs -maxdepth 1 -name 'mysql_upgrade_log.*' -printf '%T@ %p\n' 2>/dev/null | sort -nr | head -n 1 | cut -d' ' -f2-)
printf 'Latest log: %s\n' "$latest_log"
[ -n "$latest_log" ] && grep -inE "error|warn|fail" "$latest_log"Why this matters: MariaDB's docs say mariadb-upgrade must run after the new server starts, to update the system tables. Look for that step in the log. If you see no sign of it, ask cPanel support before running it by hand.
How to check it worked
Run the version query again. The number should now start with your target, for example 10.11 or 11.4.
mysql -e "SELECT VERSION();"Then run a real read against one site's database. This counts the published posts in a WordPress database, using example_wp and the default wp_ table prefix as examples.
mysql -e "SELECT COUNT(*) FROM example_wp.wp_posts WHERE post_status='publish';"You should get a number, not an error. If the site uses a different table prefix, change wp_posts to match.
Now check the service is healthy and websites answer. This command shows the HTTP status line for a site.
curl -sI https://example.com | head -n 1You want HTTP/2 200 or HTTP/1.1 200 OK. A 500 error or a database connection error page means something is wrong; see the troubleshooting section below.
Finally, open a few sites in a private browser window, log in to one WordPress admin and save a draft. If you want a deeper database health check afterwards, use these steps to check and repair a WordPress database with WP-CLI.
What rollback really means here
cPanel's docs say downgrades are not supported and strongly advise against trying one. cPanel and WHM also do not support moving from MariaDB back to MySQL. The upgrade information page does not describe any rollback at all. Its only recovery path is restoring from backup.
So in practice, rollback means one of two things. You restore the whole server from a snapshot taken just before the upgrade, which brings the old version back too. Or you stay on the new version and restore single databases or accounts from your dumps and WHM backups, which is usually what you want.
But what if one old app breaks? Update the app or ask its developer. Going back to 10.6 only returns you to software with no security fixes.
Troubleshooting
Error: Errors during downloading metadata for repository 'MariaDB106'
Symptom: a cPanel update, yum update or dnf update fails. The output includes Errors during downloading metadata for repository 'MariaDB106': and a Status code: 404 line pointing at archive.mariadb.org. Some servers show failure: repodata/repomd.xml from MariaDB106: [Errno 256] No more mirrors to try. instead.
Cause: cPanel's support article says MariaDB removed the CentOS 7 and CentOS 8 folders for 10.6 from its archive, while the repo file on your server still points there. It affects CentOS and CloudLinux 7, and AlmaLinux and CloudLinux 8.
Fix: back up your databases first (Step 2). cPanel's official fix changes "centos" to "almalinux" in the repo file's baseurl line and keeps a .bk copy of the old file. This command does that for MariaDB 10.6.
sed -i.bk "/baseurl/s|centos|almalinux|g" /etc/yum.repos.d/MariaDB106.repoThen run your update again. cPanel's article gives the same command for MariaDB1011.repo, MariaDB114.repo and MariaDB118.repo if those exist. To undo, put the .bk copy back. You are still on an end of life version, so carry on with the upgrade. If your setup looks different from the article, ask cPanel support.
The checker reports errors
Symptom: the checker log or the WHM progress window lists issues.
Fix: fix every error, then click Re-Run Checker until nothing new appears. Remember the cPanel note that the checker targets MySQL 5.7 to 8.0 issues, so one error may not apply to MariaDB. If you cannot tell which kind you have, ask cPanel support with the log attached.
The version you want is not in the list
Symptom: whmapi1 installable_mysql_versions or the WHM drop-down does not show 11.4 or 11.8.
Cause: the list depends on your cPanel version and OS. For example, 11.8 is listed only on cPanel's supported page for version 136 and later. If you are on MySQL 8, MariaDB 10.x will never appear, because cPanel does not support that move.
Fix: update cPanel and WHM to a current release, then check the list again. If you are on MySQL 8, stay within MySQL versions such as 8.4.
The upgrade stops on my.cnf validation
Symptom: WHM stops at the warnings screen, or the upgrade log reports a problem with an option in /etc/my.cnf.
Cause: your /etc/my.cnf contains an option the new version removed, such as innodb_log_write_ahead_size or innodb_version.
Fix: repeat Step 5. Remove or comment out the old options, keep your copy of the file, and start the upgrade again.
Sites show database errors after the upgrade
Symptom: a site shows a database connection error, or forms that worked yesterday now fail to save.
Cause: cPanel's upgrade notes list a few common reasons. Old apps can depend on commands the new version removed. Apps may not handle Strict Mode, which rejects bad or missing values instead of quietly fixing them. And servers that still use the old MySQL 5.1 password format need those database users to set new passwords.
Fix: first confirm the database service is running and the version query works. Then reset the password for that site's database user from the account's cPanel and update the app's config file to match. If the app is simply too old, update it or contact its developer. A slow site rather than a broken one is a different problem: turn on the MySQL slow query log to find which queries are dragging.
When to ask for help
Ask cPanel support or a database specialist first if you run MySQL Governor, Galera, replication, or databases bigger than your free disk space. A short ticket before the upgrade beats a long one after it.
The one message worth forwarding
"Hi, our server still runs MariaDB 10.6, which reached end of life on 6 July 2026 and gets no more security fixes. I would like to upgrade it to MariaDB 10.11 (or 11.4) using WHM's Upgrade Database Version tool. The plan: take a full database dump and confirm the files are not empty, take a server snapshot, run the upgrade checker and fix its errors, run the upgrade in a maintenance window, then check the log and test our main sites. Downgrades are not supported, so the backup is our only way back. Can we agree a time for this in the next two weeks?"
Pick a quiet hour this week, run Step 1 and Step 3 today, and you will know exactly how big this job is before it chooses its own moment for you.
Reader questions
Is MariaDB 10.6 still getting security updates?
No. The MariaDB Foundation ended 10.6 on 6 July 2026, and 10.6.28 from 13 August 2026 is the final release. There will be no 10.6.29.
Do I have to upgrade 10.6 to 10.11 before going to 11.4?
No. cPanel says its upgrade process performs any stepped upgrades for you, so you can pick your target version directly.
Can I go back to MariaDB 10.6 if the upgrade causes problems?
Not through cPanel. Downgrades are not supported, so the only way back is restoring a server snapshot or your backups.
Will my websites be offline during the upgrade?
Sites that use the database are down while the database service is stopped. Large or numerous databases make that window longer, so plan a quiet hour.
I use shared hosting. Do I need to do this myself?
No. Only someone with root access to the server can run this upgrade. On shared hosting, ask your host which version the server runs and when they plan to upgrade.
Can I move from MySQL 8 to MariaDB with this tool?
No. cPanel says MySQL 8 cannot be upgraded to MariaDB 10.x, and a move from MySQL to MariaDB cannot be undone.
Was this guide helpful?
Help us make the next update better.
Sources & further reading
- MariaDB Foundation: MariaDB Server 10.6 reaches end of life on July 6th
- MariaDB Foundation: Q3 2026 maintenance releases, and goodbye 10.6
- cPanel Docs: Supported MySQL/MariaDB versions (136 and later)
- cPanel Docs: Supported MySQL/MariaDB versions (126 to 130)
- cPanel Docs: Upgrade Database Version
- cPanel Docs: MySQL upgrade information center
- cPanel Support: How to upgrade MySQL/MariaDB on the command line
- cPanel Support: failure repodata/repomd.xml from MariaDB106 [Errno 256]
- MariaDB Docs: Upgrading from MariaDB 10.6 to MariaDB 10.11
- WordPress Hosting Handbook: Server environment
What changed
Added original article media and prerequisites. Hardened the example backup workflow with a private timestamped directory, restrictive permissions, a reconnect note and date-independent upgrade-log discovery. Preserved the slug and original publication date.
Originally published . About our editorial updates.



