All pages
Powered by GitBook
1 of 1

Loading...

Upgrading from MariaDB 10.2 to MariaDB 10.3

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. . The server should be cleanly shut down, with no incomplete transactions remaining. must be set to 0 or 1 and must be less than 3.

  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.2 and 10.3

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

Options That Have Changed Default Values

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 : EXCEPT and INTERSECT. These can no longer be used as without being quoted.

SQL_MODE=ORACLE

  • has introduced major new Oracle compatibility features. If you upgrade and are using this setting, please check the .

Functions

  • As a result of implementing Table Value Constructors, the has been renamed to VALUE().

  • Functions that used to only return 64-bit now can return 32-bit results (). This could cause incompatibilities with strongly-typed clients.

mysqldump

  • in includes logic to cater for the . mysqldump from an earlier MariaDB release cannot be used on and beyond.

MariaDB Backup and Percona XtraBackup

  • is not compatible with . Installations currently using XtraBackup should upgrade to before upgrading to .

Privileges

  • If a user has the but not the DELETE HISTORY privilege, running will grant DELETE HISTORY as well.

Major New Features To Consider

You might consider using the following major new features in :

  • See also .

See Also

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

No longer necessary as the Antelope is no longer supported.

No longer necessary as the Antelope is no longer supported.

Used in XtraDB-only

Used in XtraDB-only

Large index key prefixes were made default from , and limiting tables to small prefixes is no longer permitted in .

Used in XtraDB-only

Used in XtraDB-only

Used in XtraDB-only

Used in XtraDB-only

Used in XtraDB-only

Translated to (NONE to OFF, everything else to ON); only existed to allow easier upgrade from earlier XtraDB versions.

Replaced by the system variable.

Used in XtraDB-only

Used in XtraDB-only

Used in XtraDB-only

XA transactions are always supported.

Used in XtraDB-only

Replaced by the system variable.

Used in XtraDB-only

innodb_flush_method

(empty)

fsync

innodb_spin_wait_delay

6

4

performance_schema_max_stage_classes

150

160

plugin_maturity

unknown

innodb_buffer_pool_populate

Used in XtraDB-only

innodb_cleaner_lsn_age_factor

Used in XtraDB-only

innodb_corrupt_table_action

Used in XtraDB-only

innodb_empty_free_list_algorithm

Used in XtraDB-only

innodb_fake_changes

Used in XtraDB-only

innodb_file_format

The InnoDB file format is now Barracuda, and the old Antelope file format is no longer supported.

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
Stop MariaDB
innodb_fast_shutdown
innodb_force_recovery
Installing MariaDB Packages with APT
Installing MariaDB Packages with YUM
Installing MariaDB Packages with ZYpp
option files
Start MariaDB
mysql_upgrade
option files
reserved words
identifiers
VALUES function
MDEV-12619
mysqldump
mysql.transaction_registry table
Percona XtraBackup
MariaDB Backup
SUPER privilege
mysql_upgrade
System-versioned tables
Sequences
System Variables Added in MariaDB 10.3
Upgrading from MariaDB 10.2 to MariaDB 10.3 with Galera Cluster
Upgrading from MariaDB 10.1 to MariaDB 10.2
Upgrading from MariaDB 10.0 to MariaDB 10.1

One less than the server maturity

innodb_file_format_check
InnoDB file format
innodb_file_format_max
InnoDB file format
innodb_foreground_preflush
innodb_instrument_semaphores
innodb_kill_idle_transaction
innodb_large_prefix
innodb_locking_fake_changes
innodb_log_arch_dir
innodb_log_arch_expire_sec
innodb_log_archive
innodb_log_block_size
innodb_log_checksum_algorithm
innodb_log_checksums
innodb_mtflush_threads
innodb_page_cleaners
innodb_sched_priority_cleaner
innodb_show_locks_held
innodb_show_verbose_locks
innodb_support_xa
innodb_use_fallocate
innodb_use_global_flush_log_at_trx_commit
innodb_use_mtflush
innodb_page_cleaners
innodb_use_stacktrace
innodb_use_trim
Upgrading with Galera Cluster
MariaDB 10.3
MariaDB 10.3
changes carefully
MariaDB 10.3
MariaDB 10.3
MariaDB 10.3
MariaDB 10.3
MariaDB 10.3
The features in MariaDB 10.3
MariaDB 10.2
MariaDB 10.3