Spec-Zone.ru › MariaDB

Upgrading from MariaDB 10.6 to MariaDB 10.11

This page includes details for upgrading from MariaDB 10.6 to the subsequent long-term maintenance version, MariaDB 10.11. It is currently incomplete.

How to Upgrade

For Windows, see Upgrading MariaDB on Windows.

For MariaDB Galera Cluster, see Upgrading from MariaDB 10.6 to MariaDB 10.7 with Galera Cluster 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 Mariabackup.

The suggested upgrade procedure is:

  1. Modify the repository configuration, so the system's package manager installs MariaDB 10.11. For example,
    • On Debian, Ubuntu, and other similar Linux distributions, see Updating the MariaDB APT repository to a New Major Release for more information.
    • On RHEL, CentOS, Fedora, and other similar Linux distributions, see Updating the MariaDB YUM repository to a New Major Release for more information.
    • On SLES, OpenSUSE, and other similar Linux distributions, see Updating the MariaDB ZYpp repository to a New Major Release for more information.
  2. Stop MariaDB.
  3. 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
  4. Install the new version of MariaDB.
    • On Debian, Ubuntu, and other similar Linux distributions, see Installing MariaDB Packages with APT for more information.
    • On RHEL, CentOS, Fedora, and other similar Linux distributions, see Installing MariaDB Packages with YUM for more information.
    • On SLES, OpenSUSE, and other similar Linux distributions, see Installing MariaDB Packages with ZYpp for more information.
  5. Make any desired changes to configuration options in option files, such as my.cnf. This includes removing any options that are no longer supported.
  6. Start MariaDB.
  7. Run mariadb-upgrade.
    • mariadb-upgrade does two things:
      1. Ensures that the system tables in the mysql 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.6 and 10.11

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

Compression

If a non-zlib compression algorithm was used in InnoDB or Mroonga before upgrading to 10.11, those tables will be unreadable until the appropriate compression library is installed. See Compression Plugins#Upgrading.

Options That Have Changed Default Values

Option Old default New default
innodb_buffer_pool_chunk_size 134217728 Autosized
spider_auto_increment_mode -1 0
spider_bgs_first_read -1 2
spider_bgs_mode -1 0
spider_bgs_second_read -1 100
spider_bka_mode -1 1
spider_bka_table_name_type -1 1
spider_buffer_size -1 16000
spider_bulk_size -1 16000
spider_bulk_update_mode -1 0
spider_bulk_update_size -1 16000
spider_casual_read -1 0
spider_connect_timeout -1 6
spider_crd_bg_mode -1 2
spider_crd_interval -1 51
spider_crd_mode -1 1
spider_crd_sync -1 0
spider_crd_type -1 2
spider_crd_weight -1 2
spider_delete_all_rows_type -1 1
spider_direct_dup_insert -1 0
spider_direct_order_limit -1 9223372036854775807
spider_error_read_mode -1 0
spider_error_write_mode -1 0
spider_first_read -1 0
spider_init_sql_alloc_size -1 1024
spider_internal_limit -1 9223372036854775807
spider_internal_offset -1 0
spider_internal_optimize -1 0
spider_internal_optimize_local -1 0
spider_load_crd_at_startup -1 1
spider_load_sts_at_startup -1 1
spider_low_mem_read -1 1
spider_max_order -1 32767
spider_multi_split_read -1 100
spider_net_read_timeout -1 600
spider_net_write_timeout -1 600
spider_quick_mode -1 3
spider_quick_page_byte -1 10485760
spider_quick_page_size -1 1024
spider_read_only_mode -1 0
spider_reset_sql_alloc -1 1
spider_second_read -1 0
spider_selupd_lock_mode -1 1
spider_semi_split_read -1 2
spider_semi_split_read_limit -1 1
spider_semi_table_lock_connection -1 1
spider_semi_table_lock 1 0

Options That Have Been Removed or Renamed

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

Option Reason
innodb_log_write_ahead_size On Linux and Windows, the physical block size of the underlying storage is instead detected and used.
wsrep_replicate_myisam Use wsrep_mode instead.
wsrep_strict_ddl Use wsrep_mode instead.

Deprecated Options

The following options have been deprecated. They have not yet been removed, but will be in a future version, and should ideally no longer be used.

Option Reason
keep_files_on_create MariaDB now deletes orphan files, so this setting should never be necessary.

See Also

  • Features in MariaDB 10.11
  • Features in MariaDB 10.10
  • Features in MariaDB 10.9
  • Features in MariaDB 10.8
  • Features in MariaDB 10.7
  • Upgrading from MariaDB 10.6 to MariaDB 10.7 with Galera Cluster
  • Upgrading from MariaDB 10.7 to MariaDB 10.8
  • Upgrading from MariaDB 10.6 to MariaDB 10.7
  • Upgrading from MariaDB 10.5 to MariaDB 10.6
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.

© 2023 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/upgrading-from-mariadb-10-6-to-mariadb-10-11/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API