Maria DB keep dying issue

Maria DB keeps dying after restart every hour, shows following error:


Mar 06 09:03:15 freeubuntu systemd[1]: mariadb.service: Start operation timed out. Terminating.
Mar 06 09:03:17 freeubuntu systemd[1]: mariadb.service: Failed with result ‘timeout’.
Mar 06 09:03:17 freeubuntu systemd[1]: Failed to start MariaDB 10.3.28 database server.

The Maria db itself is working fine, but seems the start didn’t return to systemctl correctly, so systemctl kills it after some time – around 1 hour as I can see after system reboot

I installed and later un-installed a MySql before installing the MariaDB 10.3, not sure if this is related, but seems not.

Following 2 blog shows how to resolve the issue

https://askubuntu.com/questions/750604/why-does-mariadb-keep-dying-how-do-i-stop-it

https://askubuntu.com/questions/175820/mysql-doesnt-update-due-to-error-in-apparmor-profile