I’ve just tested running sudo apt-get update & sudo apt-get upgrade on a stock emonSD-30Oct18 and mariadb was still running and not effected by any updates. The issue should only effect dist-upgrade as reported:
Maridb will fail to start after running sudo apt-get dist-upgrade to fix edit:
/lib/systemd/system/mariadb.service the value:
ProtectHome=true
to
ProtectHome=false
I would not recommend running sudo apt-get dist-upgrade. Instead, running sudo apt-get update && sudo apt-get upgrade will update all installed packages and apply any security fixes.