All pages
Powered by GitBook
1 of 1

Loading...

Upgrading from MariaDB 10.1 to MariaDB 10.2

An upgrading guide for unmaintained versions of MariaDB Community Server.

How to Upgrade

For Windows, see Upgrading MariaDB on Windows instead.

For MariaDB Galera Cluster, see instead.

Before you upgrade, it would be best to take a backup of your database. This is always a good idea to do before an upgrade. We would recommend mariadb-backup.

The suggested upgrade procedure is:

  1. Modify the repository configuration, so the system's package manager installs . For example,

  • On Debian, Ubuntu, and other similar Linux distributions, see for more information.

  • On RHEL, CentOS, Fedora, and other similar Linux distributions, see for more information.

  • On SLES, OpenSUSE, and other similar Linux distributions, see for more information.

  1. Set to 0. It can be changed dynamically with . For example:SET GLOBAL innodb_fast_shutdown=0;

  • This step is not necessary when upgrading to or later. Omitting it can make the upgrade process far faster. See for more information.

  1. .

  2. Uninstall the old version of MariaDB.

  • On Debian, Ubuntu, and other similar Linux distributions, execute the following:sudo apt-get remove mariadb-server

  • On RHEL, CentOS, Fedora, and other similar Linux distributions, execute the following:sudo yum remove MariaDB-server

  • On SLES, OpenSUSE, and other similar Linux distributions, execute the following:sudo zypper remove MariaDB-server

  1. Install the new version of MariaDB.

  • On Debian, Ubuntu, and other similar Linux distributions, see for more information.

  • On RHEL, CentOS, Fedora, and other similar Linux distributions, see for more information.

  • On SLES, OpenSUSE, and other similar Linux distributions, see for more information.

  1. Make any desired changes to configuration options in , such as my.cnf. This includes removing any options that are no longer supported.

  2. .

  3. Run .

  • mysql_upgrade does two things:

    1. Ensures that the system tables in the [mysq](../../../../reference/sql-statements-and-structure/sql-statements/administrative-sql-statements/system-tables/the-mysql-database-tables/README.md) l database are fully compatible with the new version.

    2. Does a very quick check of all tables and marks them as compatible with the new version of MariaDB .

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

uses as the default storage engine, rather than XtraDB, used in and before. See 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 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 , , , and .

Option
Old default value
New default value

Options That Have Been Removed or Renamed

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

Option
Reason

Reserved Words

New : OVER, RECURSIVE and ROWS. These can no longer be used as without being quoted.

TokuDB

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

Replication

from legacy MySQL servers may require setting to NONE.

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.

Auto_increment

columns are no longer permitted in , and . They were permitted in earlier versions, but did not work correctly.

TLS

Starting with , when the user specifies the --ssl option with a , the will not by default. In order to verify the server certificate, the user must specify the --ssl-verify-server-cert option to the . For more information, see the for the client.

Major New Features To Consider

You might consider using the following major new features in :

  • now supports continuous binary log backups

See Also

This page is licensed: CC BY-SA / Gnu FDL

1024

1048576

1

2

OFF

ON

100

25

8

Varies

OFF

ON

innodb

crc32

Antelope

Barracuda

OFF

ON

VATS

FCFS

OFF

ON

0.001000

0

1073741824

10485760

1

4

OFF

ON

.

NULL

OFF

ON

OFF

ON

31536000

86400

OFF

ON

OFF

ON

1

2

4M

16M

4M

16M

NORMAL

BACKUP, QUICK

See for details.

OFF

ON

0

1

3600

60

NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION

STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION

0

Auto

1000

65536

295936

299008

innodb_api_trx_level](../../../../reference/storage-engines/innodb/innodb-system-variables.md)

Deprecated in .

See also System Variables Added in MariaDB 10.2.

aria_recover(_options)

NORMAL

BACKUP, QUICK

binlog_annotate_row_events

OFF

ON

binlog_checksum

NONE

CRC32

binlog_format

STATEMENT

aria_recover

Renamed to aria_recover_options to match myisam_recover_options.

innodb_additional_mem_pool_size

Deprecated in .

innodb_api_bk_commit_interval

Memcache never implemented in MariaDB.

innodb_api_disable_rowlock

Memcache never implemented in MariaDB.

innodb_api_enable_binlog

Memcache never implemented in MariaDB.

innodb_api_enable_mdl

Memcache never implemented in MariaDB.

Updating the MariaDB APT repository to a New Major Release
Updating the MariaDB YUM repository to a New Major Release
Updating the MariaDB ZYpp repository to a New Major Release
innodb_fast_shutdown
SET GLOBAL
MDEV-12289
Stop MariaDB
Installing MariaDB Packages with APT
Installing MariaDB Packages with YUM
Installing MariaDB Packages with ZYpp
option files
Start MariaDB
mysql_upgrade
InnoDB
Why does MariaDB 10.2 use InnoDB instead of XtraDB?
XtraDB system variables
innodb_strict_mode
sql_mode
binlog_format
binlog_checksum
innodb_checksum_algorithm
option files
reserved words
identifiers
TokuDB
Replication
binlog_checksum
SQL_MODE
Auto_increment
CHECK constraints
DEFAULT value expressions
virtual columns
client or utility
client or utility
verify the server certificate
client or utility
list of options
mysql
Window Functions
mysqlbinlog
Recursive Common Table Expressions
JSON functions
Upgrading from MariaDB 10.1 to MariaDB 10.2 with Galera Cluster
Upgrading from MariaDB 10.0 to MariaDB 10.1
Upgrading from MariaDB 5.5 to MariaDB 10.0

MIXED

[

group_concat_max_len
innodb_autoinc_lock_mode
innodb_buffer_pool_dump_at_shutdown
innodb_buffer_pool_dump_pct
innodb_buffer_pool_instances
innodb_buffer_pool_load_at_startup
innodb_checksum_algorithm
innodb_file_format
innodb_large_prefix
innodb_lock_schedule_algorithm
innodb_log_compressed_pages
innodb_max_dirty_pages_pct_lwm
innodb_max_undo_log_size
innodb_purge_threads
innodb_strict_mode
innodb_undo_directory
innodb_use_atomic_writes
innodb_use_trim
lock_wait_timeout
log_slow_admin_statements
log_slow_slave_statements
log_warnings
max_allowed_packet
max_long_data_size
myisam_recover_options
optimizer_switch
Optimizer Switch
replicate_annotate_row_events
server_id
slave_net_timeout
sql_mode
thread_cache_size
thread_pool_max_threads
thread_stack
innodb_use_sys_malloc
Upgrading with Galera Cluster
MariaDB 10.2
MariaDB 10.2.5
MariaDB 10.2
MariaDB 10.1
MariaDB 10.2
MariaDB 10.2
The features in MariaDB 10.2
MariaDB 10.0
MariaDB 10.0