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_passwordon MySQL 8,mysql_native_passwordon 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
- New install, no specific dependency? Stick with cPanel’s default — MariaDB. It’s what cPanel tests.
- Existing application that depends on a specific MySQL 8 feature (JSON_TABLE, specific optimizer hint)? Stay on MySQL.
- Existing application that depends on MariaDB-specific features (Aria engine, dynamic columns)? Stay on MariaDB.
- Customer migrating from a non-cPanel MySQL environment? Mirror what they had. Switching engines mid-migration is asking for trouble.
- High-write workload that benefits from MyRocks? MariaDB with MyRocks engine — narrow case, but real.
What to do
- Don’t switch without a measured reason. Both engines work fine for the typical cPanel workload (WordPress, Joomla, custom PHP apps).
- 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.
- Test the application against the destination engine before cutover. Connection libraries, ORM behaviour, JSON column queries — all places where the two diverge.
- Keep version lock. Don’t let
yum updatemove MariaDB across major versions; cPanel manages this via its own paths. - 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.
- 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.