What MariaDB is
MariaDB is a relational database management system created in 2009 as a fork of MySQL. It was founded by Michael “Monty” Widenius, one of the original creators of MySQL, when MySQL came under Oracle. He wanted to keep a fully open, community-developed database. It is named after his younger daughter Maria; MySQL is named after his elder daughter My.
Is MariaDB the same as MySQL?
For an ordinary website, practically yes. MariaDB was designed as a drop-in replacement for MySQL: it uses the same SQL language, the same commands, tools and way of connecting. WordPress, WooCommerce and PrestaShop work with both without any changes. Over the years, however, development has diverged, and there are now differences in advanced features.
Differences between MariaDB and MySQL
- Licence and development: MariaDB is fully open source and governed by the MariaDB Foundation. MySQL is owned by Oracle, and some features are only in the paid edition.
- Storage engines: MariaDB has more storage types, such as Aria or ColumnStore for analytics.
- Performance: in some situations it is faster, for example with more complex queries and a larger number of connections.
- Versions: the version numbers differ, and newer versions of the two systems are no longer fully interchangeable for advanced features.
Where MariaDB is used
MariaDB is the default database in most Linux distributions, such as Debian, Fedora and Red Hat, and many hosting providers have switched to it from MySQL. If you have WordPress on shared hosting, there is a good chance your database actually runs on MariaDB, even though the control panel talks about a “MySQL database”. Wikipedia uses it too, as does Google in some services.
Advantages of MariaDB
- free and with no worries about restrictions imposed by a single company (open source),
- compatibility with existing MySQL applications,
- fast development and regular security updates,
- good performance for websites, online shops and applications.
What to watch out for when switching
When moving a website between servers running MySQL and MariaDB, check the versions and the character set (utf8mb4) so that accented characters and emoji transfer correctly. Make a backup before any change of database server.
Databases without the hassle
During a website migration, I move the database safely, even between different systems. I build new applications on MariaDB as part of my web applications service.