W3cubDocs

/MariaDB

Upgrading Between Minor Versions on Linux

For Windows, see Upgrading MariaDB on Windows instead.

For MariaDB Galera Cluster, see Upgrading Between Minor Versions 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.

To upgrade between minor versions of MariaDB on Linux/Unix (for example from MariaDB 10.3.12 to MariaDB 10.3.13), the following procedure is suggested:

  1. Stop MariaDB.
  2. Uninstall the old version of MariaDB.
  3. Install the new version of MariaDB.
  4. Make any desired changes to configuration options in option files, such as my.cnf.
  5. Start MariaDB.
  6. Run mysql_upgrade.
    • mysql_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 .
    • In most cases this should be a fast operation (depending of course on the number of tables).

To upgrade between major versions, see the following:

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.

© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/upgrading-between-minor-versions-on-linux/