Skip to content

MySQL vs MariaDB on cPanel — which to run, when to switch

The practical differences between MySQL and MariaDB on cPanel hosts in 2026, when switching matters, and the gotchas of either choice.

MariaDB and MySQL forked over a decade ago and have continued to diverge — JSON handling, role-based access control, default storage engines, optimizer behaviour. cPanel defaults to MariaDB on new installs but supports both. Most cPanel operators don’t have a strong reason to switch in either direction, but knowing the differences matters when a customer asks “why is my query slower than on the old server”.

The trade-off

  • MariaDB — cPanel default for new installs since 11.94. Active development, faster release cadence, additional storage engines (Aria, MyRocks, ColumnStore). Generally drop-in compatible with applications expecting MySQL, but with version-specific differences.
  • MySQL — Oracle-maintained. Tighter feature roadmap, more enterprise tooling. MySQL 8.0+ has features MariaDB doesn’t fully match (CTEs and window functions both have them now, but specific behaviours differ).
  • Percona Server — MySQL-compatible fork with operational enhancements. cPanel doesn’t manage Percona directly but it can be installed manually; lose some cPanel integration.

Specific differences that bite:

  • JSON column behaviour (storage, indexing, function names) differs subtly between MariaDB 10.x and MySQL 8.x.
  • Default authentication plugin (caching_sha2_password on MySQL 8, mysql_native_password on MariaDB) breaks older client libraries.
  • Replication is wire-compatible up to a point, then forks — you can’t trivially replicate from MariaDB 10.6 to MySQL 8.0.

How to decide

  1. New install, no specific dependency? Stick with cPanel’s default — MariaDB. It’s what cPanel tests.
  2. Existing application that depends on a specific MySQL 8 feature (JSON_TABLE, specific optimizer hint)? Stay on MySQL.
  3. Existing application that depends on MariaDB-specific features (Aria engine, dynamic columns)? Stay on MariaDB.
  4. Customer migrating from a non-cPanel MySQL environment? Mirror what they had. Switching engines mid-migration is asking for trouble.
  5. High-write workload that benefits from MyRocks? MariaDB with MyRocks engine — narrow case, but real.

What to do

  1. Don’t switch without a measured reason. Both engines work fine for the typical cPanel workload (WordPress, Joomla, custom PHP apps).
  2. If switching, dump-and-reload is the safe path. In-place “upgrades” between MariaDB and MySQL are not supported; they’re sometimes possible, but always fragile.
  3. Test the application against the destination engine before cutover. Connection libraries, ORM behaviour, JSON column queries — all places where the two diverge.
  4. Keep version lock. Don’t let yum update move MariaDB across major versions; cPanel manages this via its own paths.
  5. Monitor for behaviour drift after switching. Query plan changes can be subtle — a query that was index-scan-based suddenly does a full table scan.
  6. For tuning specifics, see the MariaDB tune vs more iron framing — applies to both engines.

Stack Harbor advises on engine choice and manages upgrades between major versions as part of cPanel server administration.