Mysql – How to upgrade MySQL 5.6 to MariaDB

freebsdmariadbMySQLupgrade

We are using MySQL 5.6 on a productive Server which we want to migrate to MariaDB. Many reasons – but the main reason is the way the Master <-> Master Replication on MariaDB is working.

There are many Drop in REplacement Guides regarding Crossgrade from MySQL 5.5 to Mariadb (which also worked in our tests), BUT in our tests the mariadb drop in replacement did not work properly when executed on an MySQL 5.6 based Machine.

Is there any Hint on how this could work?

Bonus Point for Hints how this is done on Freebsd 10.0

Best Answer

Drop-in replacement for MySQL-5.6 is MariaDB-10.0.x, not the 5.5 release. And even then I'm not sure all features of Mysql already ported to the MariaDB.

At the time current version of databases/mariadb100-server is 10.0.17. You can replace ports this way:

pkg delete -f mysql56-server
pkg delete -f mysql56-client
make -C /usr/ports/databases/mariadb100-server install clean

I hope you'll try all that on the test machine first.

Related Topic