MariaDB is a popular MySQL-compatible fork—most tutorial SQL works; verify version for window functions, JSON, and optimizer differences.
Check version
SELECT VERSION();
Common differences
- Version numbering diverged from Oracle MySQL—read release notes per fork
- Some optimizer and replication features differ by version
- Hosting may label MariaDB as MySQL—test migrations on target engine
Practice: Review prior lessons, then try interview questions without notes.
When it matters
WordPress and Linux distros often ship MariaDB—Laravel apps usually run unchanged if charset and engine are correct.
Important interview questions and answers
- Q: Assume identical?
A: Test critical queries and migrations on production-like version. - Q: MariaDB in VERSION()?
A: String often contains 'MariaDB'—parse before assuming Oracle MySQL.
Self-check
- How detect MariaDB vs MySQL?
- Why test on production-like engine?
Tip: Parse VERSION() string—MariaDB vs Oracle MySQL differ over time.
Interview prep
- Same as MySQL?
Mostly compatible—test version-specific features.
- VERSION() string?
Often includes MariaDB label.