Migrating from MySQL to MariaDB and viceversa

AlexRebula picture AlexRebula · Nov 22, 2011 · Viewed 7.9k times · Source

I am doing a research regarding migrating from MySQL to MariaDB and viceversa.

As it seems, the first part should be easy and not complicated as stated here: MariaDB versus MySQL - Compatibility

It is the "viceversa" part that botters me: MariaDB -> MySQL. I just could not find anything useful about this topic.

Can anyone help? Any advice, hint? Are there complications migrating from MariaDB back to MySQL?

Thank you so much.

Answer

Vladislav Vaintroub picture Vladislav Vaintroub · Nov 23, 2011

If there is someone who should ever take care of migrating from MariaDB to MySQL, it would be Oracle. As Oracle pretends MariaDB does not exist (company politics-policies) , it also does not provide the possibility to migrate (which does not bother me personally, because being on MariaDB team I'd prefer people to chose it and stay there :)

Having said all the above, the migration should be straightforward, provided you do not use special features (so, no storage engines besides MyISAM/Innodb). You shutdown MariaDB, you save the data directory, remove MariaDB, install MySQL, copy the saved data directory back. In the worst case you'd need to remove parameters from my.ini/my.cnf that are not recognized by MySQL.

The point I'm trying to make is since persistent data formats for most commonly used storage engines are compatible, no data migration is required (at least not yet:)