# How to upgrade mariadb 10.6 to 10 or 12?

**URL:** <https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900>\
**Category:** Rocky Linux Help & Support\
**Created:** [October 31, 2026, 12:46am UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900 "2026-10-31T00:46:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [October 31, 2026, 12:46am UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/1 "2026-10-31T00:46:40Z")

</div>

I need to upgrade my Mariadb to run Nextcloud.

```auto
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](https://www.robkalmeijer.nl/techniek/computer/servers/sql/index.html)

```auto
[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

```

```auto

```

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [October 31, 2026, 9:56am UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/2 "2026-10-31T09:56:02Z")

</div>

Do you mean something like: [https://docs.redhat.com/en/documentation/red\_hat\_enterprise\_linux/8/html/deploying\_different\_types\_of\_servers/using-databases#upgrading-from-a-rhel-8-version-of-mariadb-10-5-to-mariadb-10-11\_using-mariadb](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/deploying_different_types_of_servers/using-databases#upgrading-from-a-rhel-8-version-of-mariadb-10-5-to-mariadb-10-11_using-mariadb)

---

<div class="post-metadata">

**Author:** ![flexteam26\_ag\_rock10](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@flexteam26\_ag\_rock10](https://forums.rockylinux.org/u/flexteam26_ag_rock10)\
**Post date:** [October 31, 2026, 1:01pm UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/3 "2026-10-31T13:01:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [November 2, 2026, 2:16pm UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/4 "2026-11-02T14:16:22Z")

</div>

This doesn’t work. Stays on 10.6.28. Need to switch to 10.11 or better 11.8

---

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [November 2, 2026, 2:21pm UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/5 "2026-11-02T14:21:14Z")

</div>

The problem is how to get to 10.11 or 11.8  
The list shows them.

Use RL 9

I installed it:

```auto
# 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

```

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [November 2, 2026, 2:35pm UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/6 "2026-11-02T14:35:40Z")

</div>

> [@robkalmeijer](#):
>
> This doesn’t work. Stays on 10.6.28. Need to switch to 10.11 or better 11.8

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.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [November 2, 2026, 2:49pm UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/7 "2026-11-02T14:49:28Z")

</div>

> [@robkalmeijer](#):
>
> ```auto
> # 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"
> 
> ```

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](https://access.redhat.com/support/policy/updates/rhel-app-streams-life-cycle) )  
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:

```auto
./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.

---

<div class="post-metadata">

**Author:** ![robkalmeijer](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/robkalmeijer/32/6039_2.png) [@robkalmeijer](https://forums.rockylinux.org/u/robkalmeijer)\
**Post date:** [November 2, 2026, 3:09pm UTC](https://forums.rockylinux.org/t/how-to-upgrade-mariadb-10-6-to-10-or-12/20900/8 "2026-11-02T15:09:18Z")

</div>

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.
