![]() |
|
Guide Upgrade MariaDB 10.11 to 11.4 on CyberPanel: What We Ran and What Changed - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: CyberPanel (https://adminsforum.com/Forum-cyberpanel) +---- Forum: CyberPanel Guides & Tutorials (https://adminsforum.com/Forum-cyberpanel-guides-tutorials) +----- Forum: CyberPanel Databases & phpMyAdmin Guides (https://adminsforum.com/Forum-cyberpanel-databases-phpmyadmin-guides) +----- Thread: Guide Upgrade MariaDB 10.11 to 11.4 on CyberPanel: What We Ran and What Changed (/Thread-guide-upgrade-mariadb-10-11-to-11-4-on-cyberpanel-what-we-ran-and-what-changed) |
Upgrade MariaDB 10.11 to 11.4 on CyberPanel: What We Ran and What Changed - JAY - 11-14-2026 Upgrade MariaDB 10.11 to 11.4 on CyberPanel: What We Ran and What Changed (Tested) CyberPanel 3.0.8 installs MariaDB 10.11. If an app needs a newer version, or you want the current long-term release, you can upgrade MariaDB yourself. CyberPanel has no button for it. We upgraded a CyberPanel server (Ubuntu 24.04) from MariaDB 10.11.19 to 11.4.13 and checked the panel, the websites, mail and DNS afterwards. Everything kept working, but the upgrade silently threw away our tuned database settings, and one automatic step failed and had to be run by hand. Before you start: this is a major-version upgrade of the database every site on the server uses. Take a snapshot of the VPS if your provider offers one, do it at a quiet time, and expect the databases to be offline for a short moment. Going back down to 10.11 afterwards is not a simple reinstall, which is why step 1 matters. Step 1: Back up everything Over SSH as root: Code: mkdir -p /root/mariadb-upgrade
cp -a /etc/apt/sources.list.d/mariadb.sources /root/mariadb-upgrade/
cp -a /etc/mysql /root/mariadb-upgrade/etc-mysql
mysqldump --all-databases --single-transaction --routines --events | gzip > /root/mariadb-upgrade/all-databases.sql.gz
ls -lh /root/mariadb-upgrade/Code: /etc/mysqlStep 2: Point the package source at 11.4 CyberPanel set up MariaDB's own package source, fixed to version 10.11. Check yours: Code: grep URIs /etc/apt/sources.list.d/mariadb.sourcesCode: .../mariadb-server/10.11/repo/ubuntuCode: sed -i "s#/10.11/#/11.4/#" /etc/apt/sources.list.d/mariadb.sources
apt-get update
apt-cache policy mariadb-serverCode: 1:11.4Step 3: Upgrade Code: DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold mariadb-server mariadb-clientCode: Dpkg::OptionsCode: systemctl is-active mariadb
mariadb -e "SELECT VERSION();"Step 4: Run mariadb-upgrade by hand After a version jump, MariaDB has to check and update its internal tables. It tries this by itself at startup, and on our server that attempt failed. The log showed: Code: Access denied for user 'root'@'localhost' (using password: NO)
FATAL ERROR: Upgrade failedCode: mariadb-upgradeCode: Phase 8/8: Running 'FLUSH PRIVILEGES'Code: OKStep 5: Check your settings (ours were gone) We had used CyberPanel's Optimize MySQL tool before, which writes its settings into Code: /etc/mysql/my.cnfCode: ls -la /etc/mysql/my.cnf
/etc/mysql/my.cnf -> mariadb.cnfWe put our file back from the step 1 backup and restarted: Code: cp --remove-destination /root/mariadb-upgrade/etc-mysql/my.cnf /etc/mysql/my.cnf
systemctl restart mariadbCode: /etc/mysql/my.cnfCode: /etc/mysql/mariadb.conf.d/Step 6: Check the panel and your sites What we tested after the upgrade, all working:
Good to know
Upgraded yours? Tell us your CyberPanel and MariaDB versions below, and whether anything else needed fixing. |