Upgrading from MariaDB 10.1 to MariaDB 10.2

You are viewing an old version of this article. View the current version here.

How to upgrade

The suggested upgrade procedure is:

  1. Shutdown MariaDB 10.1
  2. Take a backup (this is the perfect time to take a backup of your databases)
  3. Uninstall MariaDB 10.1
  4. Install MariaDB 10.2 [2]
  5. 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)
  6. 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 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

New major features you should consider

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

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.