mariadb-upgrade & mysql_upgrade

Command examines the data directory for incompatibilies with the current version of MariaDB Server. Upgrades the system tables to support any new features. Attempts to repair tables with incompatibilities.

Always perform a backup before upgrading.

Note

The mariadb-upgrade command can also be run using the legacy command from 10.3 and 10.2: mysql_upgrade.