Migrating from MySQL to MariaDB is generally a straightforward
procedure: you can shut down MySQL, install MariaDB, and start it
up with a very good chance of success. When
upgrading/crossgrading/migrating from one release of MySQL or
MariaDB to another, it is important to run
mysql_upgrade
. The same is true when migrating from
MySQL to MariaDB, in part because MariaDB has some different
definitions for certain privilege tables. This means that the
structures of the MySQL tables are not valid for MariaDB, a
problem easily fixed by mysql_upgrade
, unless
you are trying to import an SQL dump from MySQL that creates
tables using the old-style structures and tries to interact with
them before it is possible to run mysql_upgrade
.
Let's take a look at why this is a problem and how to solve it.
…
[Read more]