All pages
Powered by GitBook
1 of 1

Upgrading from MariaDB 10.6 to MariaDB 10.7

Note that MariaDB 10.7 is only maintained for one year. MariaDB 10.6 is currently the latest long-term maintenance release.

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 mariadb-backup.

The suggested upgrade procedure is:

  1. Modify the repository configuration, so the system's package manager installs MariaDB 10.7. 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.

  1. Stop MariaDB.

  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 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.

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

  2. Start MariaDB.

  3. 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.7

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

Reserved Words

  • ROW_NUMBER is now a reserved word.

Compression

If a non-zlib compression algorithm was used in InnoDB or Mroonga before upgrading to 10.7, 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

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_reset_sql_alloc

-1

1

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

wsrep_replicate_myisam

Use wsrep_mode instead.

wsrep_strict_ddl

Use wsrep_mode instead.

See Also

  • The features in MariaDB 10.7

  • Upgrading from MariaDB 10.6 to MariaDB 10.7 with Galera Cluster

  • Upgrading from MariaDB 10.5 to MariaDB 10.6

  • Upgrading from MariaDB 10.4 to MariaDB 10.5

  • Upgrading from MariaDB 10.3 to MariaDB 10.4

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