MariaDB is designed to allow easy upgrades. You should be able to trivially upgrade from ANY earlier MariaDB version to the latest one (for example MariaDB 10.3.x to MariaDB 10.11.x), usually in a few seconds. This is also mainly true for any MySQL version < 8.0 to MariaDB 10.4 and up.
Upgrades are normally easy because:
MariaDB Corporation regularly runs tests to check that one can upgrade from MariaDB 5.5 to the latest MariaDB version without any trouble. All older versions should work too (as long as the storage engines you were using are still around).
Note that if you are using MariaDB Galera Cluster, you have to follow the Galera upgrading instructions!
mysql data directory with mariadb-dump --add-drop-table mysql (called mysqldump in MariaDB 10.3 and earlier) as most of the upgrade changes are done there (adding new fields and new system tables etc). 3. Note that rpms don't support upgrading between major versions, only minor like 10.4.1 to 10.4.2. If you are using rpms, you should de-install the old MariaDB rpms and install the new MariaDB rpms before running mariadb-upgrade. Note that when installing the new rpms, mariadb-upgrade may be run automatically. There is no problem with running mariadb-upgrade many times.
mysqld --skip-grant-tables. This may produce some warnings about some system tables not being up to date, but you can ignore these for now as mariadb-upgrade will fix that. The main work done when upgrading is done by running mariadb-upgrade. The main things it does are:
mysql database to the newest version. This is very quick. Check the MariaDB error log for any problems during upgrade. If there are any warnings in the log files, do your best to get rid of them!
The common warnings/errors are:
In the unlikely event something goes wrong, you can try the following:
mysql data directory. They are: mysql data directory to mysql-old and run mariadb-install-db to generate a new one. mysql-old data directory. MariaDB server is not designed for downgrading. That said, in most cases, as long as you haven't run any ALTER TABLE or CREATE TABLE statements and you have a mariadb-dump of your old mysql database , you should be able to downgrade to your previous version by doing the following:
mysql database (if you didn't use the option --add-drop-table to mariadb-dump) mysql database FLUSH PRIVILEGES
© 2023 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/upgrading-between-major-mariadb-versions/