Title: Safest way to upgrade MariaDB 10.11 to 11.8+ on Ubuntu 24.04 with Virtualmin?

SYSTEM INFORMATION
OS type and version Ubuntu 24 LTS
Webmin version 2.660
Virtualmin version 8.1.0 GPL
Webserver version REQUIRED
Related packages SUGGESTED

Hi, I hope this message finds you well!

I’m using Flarum 2.0.0-rc.6 in production, and it recently started showing a warning about my MariaDB version.

My server is running Ubuntu 24.04 LTS, Virtualmin 8.1.0 GPL and Webmin 2.660. MariaDB is currently 10.11.14.

Flarum still supports MariaDB 10.11, but it recommends 11.8.0 or newer for better performance and to stay on a maintained release. So I’m considering upgrading MariaDB, but I’d like to make sure I do it safely.

The server has 19 virtual servers and 26 databases, so I’m a little concerned about the possible impact on the other websites and databases. Everything is currently working fine, and I obviously don’t want to break anything just to get rid of the Flarum warning. :slightly_smiling_face:

image

Has anyone here already upgraded MariaDB from 10.11 to 11.8+ on Ubuntu 24.04 with Virtualmin?

I’d mainly like to know if there are any Virtualmin-specific things I should check before doing the upgrade, and whether an in-place upgrade is normally safe with existing databases.

Any advice on the safest procedure and what I should back up/check beforehand would be greatly appreciated.

Thanks!

worked fine for me on alma9.

the second time it could not connect to the dbs anymore and I had to reset the password for it.

but generally works. Make sure to run the update command afterwards.

Hi there,
Thanks for taking the time to reply and for the suggestion.

I understand that upgrading is technically possible, but I want to clarify a detail about my setup: MariaDB 10.11 is actually the latest and default version provided by the official Ubuntu 24.04 LTS repositories.

To reach version 11.x, I would need to add the external MariaDB Foundation repository. While I know Virtualmin can work with third-party repos, performing a major version jump outside the default OS packages on a production server hosting 19 virtual servers and 26 active databases feels like an unnecessary risk for my specific use case.

I’m also asking to the Flarum Team about this warning introduction.
For now seems I can just ignore that warning from Flarum but I’m also trying here to understand if the upgrade is possibile and how to do as I’m already using the latest MariaDB from Ubuntu but this is not updated to the new MariaDB suggested by Flarum.

Check if ubuntu has something like rhel module streams.

the idea is that you upgrade your existing install and it keeps all configuration and is an in place upgrade.

afterwards you need to run mariadb-upgrade otherwise things break, like virtualmin backups.

I think for ubuntu you add the official repo and it works pretty much the same way.

I’m sorry but I dont know this procedure.
I’m asking because I’m not expert. I dont know what is rhel module streams and how to use.
Also I need to be careful as this is a production server. I dont have a test server so for now I think I will not upgrade.

I’m waiting to hear a reply also from Flarum.

If the base OS is at a minimal version then you are stuck with using 3rd party or compiling from source. Just depends how you want to proceed and what the reward is . Me personally I’m done with compiling from source as it is a pain to remove and all that. 3rd party, well depends , you just have to do research.

you dont need to compile from source I checked now for ubuntu.

you can add the official repo and just upgrade your existing mariadb install

you will be fine OP.

still make backups.

Did you use the stream to upgrade? I see its available on Rock 9

Never compile from source on a production server, under any circumstance.

If you use the upstream Mariadb deb package, you may find they use different paths and service names, which means you’ll need to modify the Webmin Mariadb module configuration to know where to find the files and service.

If Ubuntu offers some sort of new packages stream, that would be recommended over the upstream package which won’t necessarily be beholden to the Ubuntu packaging guidelines. I’ve sometimes been able to find a PPA of the package I need a newer version of.

I’d strongly recommend you test whatever you decide to do on a development system before risking your prod system. Database upgrades are easy and safe until they’re not, and then they’re really not.

I assume you’re keeping good backups and you have tested restoring them on another system so you know you have your complete database backed up.