MariaDB is not running, most likely because of a fatal error at startup.
Look at the last lines of
/var/log/mariadb/mariadb.log
starting from the first timestamp after power was restored. With luck it will contain a meaningful error.
If you haven’t already seen it
might help.