Upgrade MariaDB on CyberPanel safely to version 10.5. Follow this proven step-by-step guide with exact commands, backups, and fixes. Our 24/7 CyberPanel Live Support Team is always here to help you.


If your CyberPanel server is still running an older MariaDB version, you are sitting on slow queries, avoidable bugs, and security gaps. That’s the hard truth. The good news is that a cyberpanel upgrade mariadb process is straightforward when done the right way, and risky only when rushed.

Currently, CyberPanel installs MariaDB 10.5 only on fresh setups. However, older servers remain stuck on versions like 10.1 or 10.3 unless you manually upgrade. Because of this, performance issues creep in silently over time.

So let’s fix it properly.

cyberpanel upgrade mariadb

Why You Should Upgrade MariaDB on CyberPanel

Upgrading to MariaDB 10.5 delivers immediate gains. First, query handling improves noticeably. Next, several long-standing bugs disappear. More importantly, security patches close known vulnerabilities that attackers actively scan for.

In short, a cyberpanel upgrade mariadb improves:

  • Database stability
  • Query speed
  • Security hardening
  • Compatibility with modern apps

As a result, your server runs cleaner and safer.

Steps

SSH Into the Server

Before anything else, log in as root. Use Screen so the session doesn’t drop mid-upgrade.

screen -S mariadb-upgrade

Then connect via SSH.

Back Up All Databases

Even though the upgrade is safe, backups are non-negotiable.

First, get your MySQL root password:

cat /etc/cyberpanel/mysqlPassword

Now back up every database:

mysqldump -u root --all-databases | gzip > database-$(date +%d-%m-%y).sql.gz
mv database-$(date +%d-%m-%y).sql.gz /home/

This ensures you can recover instantly if anything goes sideways.

Check Current MariaDB Version
mysql -V

If you see 10.1.x or similar, you’re overdue for a cyberpanel upgrade mariadb.

Update the MariaDB Repository

Check the repo file:

cat /etc/yum.repos.d/MariaDB.repo

Edit it:

vi /etc/yum.repos.d/MariaDB.repo

Replace 10.1 with 10.5 in the baseurl.

Back Up MariaDB Configuration Files
cp /etc/my.cnf /etc/my.cnf.bak
mkdir /etc/backup_mariadb_conf
cp -R /etc/my.cnf.d/ /etc/backup_mariadb_conf/

This step protects your tuning and socket settings.

Remove Old MariaDB Packages

CentOS

yum remove MariaDB-server MariaDB-client galera MariaDB-devel MariaDB-shared -y

Ubuntu

apt remove MariaDB-server MariaDB-client galera MariaDB-devel MariaDB-shared -y

Wait until the removal completes fully.

Install MariaDB 10.5

CentOS

yum --enablerepo=mariadb install MariaDB-server MariaDB-client MariaDB-devel MariaDB-shared -y

Ubuntu

apt install MariaDB-server MariaDB-client MariaDB-devel MariaDB-shared -y

This is the core step. Let it finish without interruption.

Upgrade MariaDB Safely With Experts

Chat animation


Restore Configs and Start MariaDB
cp -f /etc/my.cnf.bak /etc/my.cnf
rm -rf /etc/my.cnf.d/
mv /etc/backup_mariadb_conf/my.cnf.d /etc/

Then enable and start MariaDB:

systemctl enable mariadb
systemctl start mariadb

Verify the upgrade:

mysql -V

Conclusion

A clean cyberpanel upgrade mariadb isn’t about blindly running commands. It’s about backups, order, and patience. When done correctly, your server feels faster, safer, and far more reliable.