I am running lnms from the pre-built image based on Ubuntu 18.04 VM
My ./validate.php :
====================================
Component
Version
LibreNMS
21.3.0
DB Schema
2021_03_17_160729_service_templates_cleanup (201)
PHP
7.4.16
Python
3.6.9
MySQL
10.1.47-MariaDB-0ubuntu0.18.04.1
RRDTool
1.7.0
SNMP
NET-SNMP 5.7.3
====================================
[OK] Composer Version: 2.0.12
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] MariaDB version 10.2.2 is the minimum supported version as of March, 2021. We recommend you update MariaDB to a supported version 10.5 suggested). Failure to update MariaDB will eventually cause issues.
[OK] Database schema correct
LibreNMS is working fine despite the error but I would like to upgrade MariaDB
I haven’t used the VM myself, but can’t you simply update the system packages inside it? sudo apt update && apt list --upgradable will tell you if there are updates see if newer mariadb is there, if so then just do sudo apt upgrade and it should be done.
Hmm, how about https://mariadb.com/docs/deploy/upgrade-community-server-cs105-ubuntu18/, or alternatively, seeing as it is VM you can either make a snapshot or recreate it should it fail; and could try sudo do-release-upgrade to bring the base os up to 20.04 which would presumably run newer mariadb.