On this page
Short answer
MariaDB and MySQL share a common ancestor, and they no longer behave the same. GTIDs use different formats, MariaDB stores JSON as text, the default authentication plugins differ, and replication from MySQL 8.0 into MariaDB works only on recent releases with binlog file and position. Test compatibility on a copy before any move in either direction.
MariaDB and MySQL share an ancestor and no longer behave the same. GTIDs use different formats, MariaDB stores JSON as text, the default authentication plugins differ, and replication from MySQL 8.0 into MariaDB works only on recent releases with binlog file and position. Test compatibility on a copy before any move in either direction. Facts are from MariaDB's compatibility pages and the MySQL 8.4 reference manual, read 3 December 2026.
For a concrete move plan, our mariadb consulting engineers start from this divergence table.
What are the key differences between MySQL and MariaDB?
The two databases started from the same code and are now separate products with separate version numbers, so a MySQL version and a MariaDB version are no longer interchangeable. MariaDB's compatibility page says MariaDB has new options, extensions, storage engines and bug fixes that are not in MySQL, and lists features MySQL does not support, such as MariaDB's Spider storage engine and virtual columns. Performance is workload specific, and neither vendor's pages give a general ranking, so these are the differences that most often matter in operations:
| Area | MariaDB | MySQL |
|---|---|---|
| GTID | domain_id-server_id-sequence_number, such as 0-1-10 | Server UUID plus transaction number |
| JSON | Stored as ordinary text or blob; MySQL 5.7's packed JSON format is not supported | Native JSON type |
| Default login plugin | caching_sha2_password unsupported before 11.4.9, 11.8.4 and 12.1.1 | caching_sha2_password for 8.4 clients |
| Legacy login plugin | mysql_native_password can serve as the replication login | mysql_native_password disabled by default in 8.4, removed in 9.0.0 |
| Upgrade tool | Run mariadb-upgrade after install | mysql_upgrade removed in 8.4; CHANGE MASTER and START SLAVE family removed too |
Is MariaDB a drop-in replacement for MySQL, and which MariaDB version matches which MySQL version?
Only for old versions. Both are relational database management systems that run InnoDB and speak SQL, and for a time each MariaDB version tracked a MySQL version. MariaDB's page pairs them like this:
| MariaDB version | MySQL version it matches | Wording on the page |
|---|---|---|
| 5.1 to 5.3 | 5.1 | Drop-in replacements |
| 5.5 | 5.5 | Drop-in replacement |
| 10.0 and 10.1 | 5.6 | Limited drop-in replacements, as far as InnoDB is concerned |
| 10.2 to 10.4 | 5.7 | Limited drop-in replacements, as far as InnoDB is concerned |
The page gives no single MySQL version or MariaDB version where compatibility ended, and it says data files and .frm files are generally binary compatible, but views with ALGORITHM=MERGE or TEMPTABLE need re-creating and the upgrade tool must still be run. With MySQL 8.0 or 8.4 as the source, run a compatibility test on a copy, because the version number alone tells you little.
Can you replicate between MySQL and MariaDB?
Yes, with limits. MariaDB 10.2 and later can replicate from a MySQL 5.7 primary. Replicating from MySQL 8.0 works only on MariaDB 10.6.21, 10.11.11, 11.4.5, 11.7.2 and later.
- The replica must use binlog file and position, not GTID.
- A MySQL 8.0 source needs
binlog-row-value-options=""andbinlog_transaction_compression=0. - JSON columns must be converted to
TEXT. - Before 11.4.9, 11.8.4 and 12.1.1,
caching_sha2_passwordis unsupported, so the replication user needsmysql_native_password.
In the other direction, MariaDB to MySQL is possible with SOURCE_AUTO_POSITION=no, encrypt-binlog=0 and log-bin-compress=0. MariaDB's default utf8mb4 collation is not supported by MySQL, so the page suggests setting collation-server=utf8mb4_0900_ai_ci. Two MariaDB pages disagree here: the GTID page says MySQL cannot replicate from a MariaDB primary, while the replication compatibility page documents it over file and position. Test it on your versions.
What breaks first when you migrate from MySQL to MariaDB, or back?
- Authentication. Application and replication users created with
caching_sha2_passwordneed a plugin the other side understands. - JSON. Code that relies on MySQL's binary JSON behavior needs testing, and a replica cannot take MySQL JSON columns without conversion.
- GTID-based tooling. Failover scripts, backup tools and monitoring that parse GTIDs break.
- Plans and defaults. MariaDB 11.0 introduced its own optimizer cost model, so plans differ from MySQL's, and the default
utf8mb4collations differ. - Removed syntax. Old
CHANGE MASTERscripts fail on MySQL 8.4.
How should you test a move, and which database fits which use case?
The choice between MySQL and MariaDB is usually made by what your applications, tools and support contracts already assume, not by a benchmark. If you run MySQL 8.4 with tooling built around its GTIDs and JSON type, staying put costs less than moving. If you run MariaDB with Galera or its own storage engines, MySQL is the larger change. Either way, build a copy of the schema and a sample of real data, run the application test suite and your slowest queries with EXPLAIN, and rehearse the cutover. Take a logical dump with mysqldump for the final step if binary compatibility is in doubt.
Our MySQL to MariaDB compatibility test and move plan use case covers the engagement shape, and MySQL support covers running MySQL itself.
Sources
- MariaDB vs MySQL compatibility, MariaDB Knowledge Base, read 3 December 2026.
- Replication compatibility between MariaDB and MySQL, MariaDB Knowledge Base, read 3 December 2026.
- Global transaction ID, MariaDB Knowledge Base, read 3 December 2026.
- Native pluggable authentication and What is new in MySQL 8.4, MySQL 8.4 Reference Manual, read 3 December 2026.
Frequently Asked Questions
Is MariaDB a drop-in replacement for MySQL?
Not any more. MariaDB's compatibility page calls 5.5 a drop-in replacement for MySQL 5.5 and 10.2 to 10.4 limited drop-in replacements for MySQL 5.7. For MySQL 8.0 and 8.4, plan a compatibility test, because GTIDs, JSON and authentication differ.
Can MariaDB replicate from MySQL 8.0?
Yes on recent releases (10.6.21, 10.11.11, 11.4.5, 11.7.2 and later), using binlog file and position, not GTID. The MySQL source needs specific binary log settings, and JSON columns must be converted to text.
Do MySQL and MariaDB use the same GTID?
No. MySQL uses a server UUID plus a transaction number. MariaDB uses domain_id-server_id-sequence_number, such as 0-1-10, and its documentation says the two are not compatible.
Talk to an engineer
Need a hand with MariaDB?
Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

