An upgrading guide for unmaintained versions of MariaDB Community Server.
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:
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.
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.
.
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
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.
Make any desired changes to configuration options in , such as my.cnf. This includes removing any options that are no longer supported.
.
Run .
mysql_upgrade does two things:
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.
Does a very quick check of all tables and marks them as compatible with the new version of MariaDB .
On most servers upgrading from 10.1 should be painless. However, there are some things that have changed which could affect an upgrade:
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).
In particular, take note of the changes to , , , and .
The following options should be removed or renamed if you use them in your :
New : OVER, RECURSIVE and ROWS. These can no longer be used as without being quoted.
has been split into a separate package, mariadb-plugin-tokudb.
from legacy MySQL servers may require setting to NONE.
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.
columns are no longer permitted in , and . They were permitted in earlier versions, but did not work correctly.
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.
You might consider using the following major new features in :
now supports continuous binary log backups
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.
NORMAL
BACKUP, QUICK
OFF
ON
NONE
CRC32
STATEMENT
aria_recover
Renamed to aria_recover_options to match myisam_recover_options.
Deprecated in .
Memcache never implemented in MariaDB.
Memcache never implemented in MariaDB.
Memcache never implemented in MariaDB.
Memcache never implemented in MariaDB.
MIXED
[