I need to upgrade my Mariadb to run Nextcloud.
Database versie
MariaDB version 10.6 detected, this version is end-of-life and only supported as part of Ubuntu 22.04. MariaDB >=10.11 and <=12.3 is suggested for best performance, stability and functionality with this version of Nextcloud.
Installed 10 as described in: https://www.robkalmeijer.nl/techniek/computer/servers/sql/index.html
[root@server5 ~]# dnf module list | grep mariadb
mariadb 10.11 client, galera, server [d] MariaDB Module
mariadb 11.8 client, galera, server [d] MariaDB Module
MariaDB’s own upgrade docs are explicit that RPM-based distros never run mariadb-upgrade for you: Debian/Ubuntu packages run it after the new server starts, RHEL-family does not, so after moving 10.6 to 10.11 or 11.8 you have to run it yourself once the new server is up. One trap when doing it via dump-and-restore: the restored mysql system tables can stay stale while mariadb_upgrade_info already records the new version, and mariadb-upgrade then reports nothing to do unless you pass --force; mariadb-upgrade --check-if-upgrade-is-needed exits 0 only when a real major jump happened. Your module list shows 10.11 and 11.8 streams available, so which repo is the running 10.6 actually installed from?
This doesn’t work. Stays on 10.6.28. Need to switch to 10.11 or better 11.8
The problem is how to get to 10.11 or 11.8
The list shows them.
Use RL 9
I installed it:
# curl -LsSO https://r.mariadb.com/downloads/mariadb_repo_setup
# echo "ceaa5bd124c4d10a892c384e201bb6e0910d370ebce235306d2e4b860ed36560 mariadb_repo_setup" | sha256sum -c -
# chmod +x mariadb_repo_setup
# ./mariadb_repo_setup --mariadb-server-version="mariadb-10.6"
# dnf install MariaDB-server MariaDB-backup
# systemctl status mariadb
Then if it doesn’t work it means you were never using the distro included mariadb. Otherwise it would have worked.
You have downloaded from the MariaDB community a version so the normal RHEL/Rocky commands don’t work. In which case, you need to follow the MariaDB community’s documentation on how to upgrade.
In other words, you have added definition for a third-party repo (hosted by MariaDB developers) that contains their RPM packages for MariaDB (version 10.6)
Rocky 9 does have its own versions of RPM packages for MariaDB. Same as RHEL 9.
(See Red Hat Enterprise Linux Application Streams Life Cycle | Red Hat Customer Portal )
They are:
- 10.5 the default that is supported to May 2032
- 10.11 a stream, supported to May 2028
- 11.8 a stream, supported to Sep 2028
If you had now the 10.5 from RL, then enabling one of the other streams and package update would replace the 10.5 packages with 10.11 or 11.8 (depending on which stream is enabled).
However, the packages from MariaDB have different names, so a dnf up does not know how to replace MariaDB packages with Rocky packages.
I’d say ignore the packages in Rocky and get new version from MariaDB. You have to look instructions from MariaDB’s site. I bet one step is:
./mariadb_repo_setup --mariadb-server-version="mariadb-11.8"
Replacing one version of packages with another version is one step.
However, we have noted in earlier comments that it is necessary to convert
(aka migrate) the data within existing database from the old version to the new version.
Within the database there are system tables and their schema and content has to match the database engine.
Make a proper backup of the database before you do anything.
I tryed this as dicribed my mariadb docs.
The minor doc mentioned repo_setup that works,
Get errors.
Now I need SSL to connect to the server with mariadb client.
I try the major upgrade docs. Need re unstall the old server and than reinstall the new version.