Try this suggestion ubuntu - MariaDB cannot start after update: [Warning] Can't create test file /home/mysql/beta.lower-test - Stack Overflow
Change in file /lib/systemd/system/mariadb.service the value:
ProtectHome=true
to
ProtectHome=false
If it works, we will need to do this a different way to make it permanent (and update will overwrite the change).