BlogMariaDB

MySQL vs MariaDB Differences: Where the Two Diverged

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 4 min read

MySQL vs MariaDB Differences: Where the Two Diverged
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:

AreaMariaDBMySQL
GTIDdomain_id-server_id-sequence_number, such as 0-1-10Server UUID plus transaction number
JSONStored as ordinary text or blob; MySQL 5.7's packed JSON format is not supportedNative JSON type
Default login plugincaching_sha2_password unsupported before 11.4.9, 11.8.4 and 12.1.1caching_sha2_password for 8.4 clients
Legacy login pluginmysql_native_password can serve as the replication loginmysql_native_password disabled by default in 8.4, removed in 9.0.0
Upgrade toolRun mariadb-upgrade after installmysql_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 versionMySQL version it matchesWording on the page
5.1 to 5.35.1Drop-in replacements
5.55.5Drop-in replacement
10.0 and 10.15.6Limited drop-in replacements, as far as InnoDB is concerned
10.2 to 10.45.7Limited 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="" and binlog_transaction_compression=0.
  • JSON columns must be converted to TEXT.
  • Before 11.4.9, 11.8.4 and 12.1.1, caching_sha2_password is unsupported, so the replication user needs mysql_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?

  1. Authentication. Application and replication users created with caching_sha2_password need a plugin the other side understands.
  2. JSON. Code that relies on MySQL's binary JSON behavior needs testing, and a replica cannot take MySQL JSON columns without conversion.
  3. GTID-based tooling. Failover scripts, backup tools and monitoring that parse GTIDs break.
  4. Plans and defaults. MariaDB 11.0 introduced its own optimizer cost model, so plans differ from MySQL's, and the default utf8mb4 collations differ.
  5. Removed syntax. Old CHANGE MASTER scripts 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

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.

Scott Sternloff

Author

Scott SternloffSenior Enterprise Architect

Senior Enterprise Architect at AceMQ. Writes the technical coverage here: RabbitMQ, Kafka and Redis architecture, clustering and migrations.

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.

Free Consultation

Get Expert Eyes on Your MariaDB Environment

Whether you're troubleshooting a production incident, planning a migration, or want a second opinion on your architecture — our team is ready. No pitch, just answers.

Email Us