How to migrate from MySQL to MariaDB without tears
summary
Migration works as a true drop‑in for most MySQL datadirs: start MariaDB over the MySQL datadir and then run mariadb-upgrade, but MySQL 8.0 is not compatible and requires an SQL dump/restore. MariaDB converts MyISAM/InnoDB pieces to Aria and adds tables like column_stats; JSON becomes LONGTEXT (breaking row‑based replication unless converted); GTID replication is one‑way (MySQL→MariaDB only); histograms are collected by default in MariaDB; EXPLAIN/ANALYZE, auth plugins and ALTER/replication diagnostics behave differently and need syntax or config changes.
AI-written summary · about
chapters (9)
- 0:00Introduction to migration
- 1:56Version compatibility and setup
- 5:59Authentication and roles differences
- 13:26Replication and GTIDs
- 17:30SQL and EXPLAIN differences
- 21:44JSON and data type differences
- 24:14Character sets and collations
- 25:41Diagnostics and progress tracking
- 29:59Summary and migration tips
