I have a DigitalOcean Ubuntu 16.4 machine with Nginx installed. Maybe it's related to Wordpress installation, maybe not. MySQL shuts itself down randomly.
It has a 1GB swap file created. 1GB RAM. Might not be related to memory issue.
Started to happen when I did an apt-get upgrade
and the upgrade stopped while MySQL was upgrading.
No error log at all.
But here is the log from Ubuntu-
(Reading database ... ^M(Reading database ... 5%^M(Reading database ...
10%^M(Reading database ...
15%^M(Reading database ... 20%^M(R$
Removing linux-headers-4.4.0-168 (4.4.0-168.197) ...
Setting up mysql-server-5.7 (5.7.28-0ubuntu0.16.04.2) ...
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 143: /usr/share/mysql-
common/configure-symlinks:
No such file or directory
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup
error from a previous
failure.
Errors were encountered while processing:
mysql-server-5.7
mysql-server
I found a fix way back by commenting out a line in the MySQL configuration file but forgot which one. That fixed it when same problem encountered. Memory allocation looks fine as far as I am concerned but then again, I am never logged in or monitoring the process when it's shutting down.