How to upgrade

The suggested upgrade procedure is:

  1. Set innodb_fast_shutdown to 0.
  2. Shutdown MariaDB 10.1,
  3. Take a backup (this is the perfect time to take a backup of your databases)
  4. Uninstall MariaDB 10.1
  5. Install MariaDB 10.2 [2]
  6. Run mysql_upgrade
    • Ubuntu and Debian packages do this automatically when they are installed; Red Hat, CentOS, and Fedora packages do not
    • mysql_upgrade does two things:
      1. Upgrades the permission tables in the mysql database with some new fields
      2. Does a very quick check of all tables and marks them as compatible with MariaDB 10.2
    • In most cases this should be a fast operation (depending of course on the number of tables)
  7. Add new options to my.cnf to enable features
    • If you change my.cnf then you need to restart mysqld

Incompatible changes between 10.1 and 10.2

On most servers upgrading from 10.1 should be painless. However, there are some things that have changed which could affect an upgrade:

InnoDB instead of XtraDB

MariaDB 10.2 uses InnoDB as the default storage engine, rather than XtraDB, used in MariaDB 10.1 and before. See Why does MariaDB 10.2 use InnoDB instead of XtraDB? In most cases this should have minimal effect as the latest InnoDB has incorporated most of the improvements made in earlier versions of XtraDB. Note that certain XtraDB system variables are now ignored (although they still exist so as to permit easy upgrading).

Options that have changed default values

In particular, take note of the changes to innodb_strict_mode, sql_mode, binlog_format, binlog_checksum and innodb_checksum_algorithm.

Options that have been removed or renamed

The following options should be removed or renamed if you use them in your config files:

OptionReason
aria_recoverRenamed to aria_recover_options to match myisam_recover_options.
innodb_additional_mem_pool_sizeDeprecated in MariaDB 10.0.
innodb_api_bk_commit_intervalMemcache never implemented in MariaDB.
innodb_api_disable_rowlockMemcache never implemented in MariaDB.
innodb_api_enable_binlogMemcache never implemented in MariaDB.
innodb_api_enable_mdlMemcache never implemented in MariaDB.
|innodb_api_trx_levelMemcache never implemented in MariaDB.
innodb_use_sys_mallocDeprecated in MariaDB 10.0.

Reserved words

New reserved words: RECURSIVE and ROWS. These can no longer be used as identifiers without being quoted.

TokuDB

TokuDB has been split into a separate package, mariadb-plugin-tokudb.

Replication

Replication from legacy MySQL servers may require setting binlog_checksum to NONE.

SQL Mode

SQL_MODE has been changed; in particular, NOT NULL fields with no default will no longer fall back to a dummy value for inserts which do not specify a value for that field.

New major features you should consider

You might consider using the following major new features in MariaDB 10.2:

Comments

Comments loading...