On small virtual servers with insufficient memory, MariaDB can give you a lot of trouble. It will crash, refuse to restart, and populate logs with errors. If trading your virtual server for another host is temporarily not an option, you can implement a quick fix.