Hi all. Having a bunch of issues with MySQL on my server where it crashes quite frequently. I use Monit to monitor the service and restart it if it fails. Problem is, I can’t really figure out why it’s crashing so often. The logs are gibberish to me. Any assistance would be fantastic.
If you go to
Webmin > Servers > MySQL Database server > MySQL Server Configuration
are the values set to default?
If yes, you can add this to /etc/mysql/conf.d/mysql.cnf https://pastebin.com/Jzsyx3Lp
and restart MySQL server
It looks like Monit had to restart the DB again after making these changes.
Monit description: Description: failed protocol test [MYSQL] at [localhost]:3306 [TCP/IP] – Server returned error code 1130 – Host ‘127.0.0.1’ is not allowed to connect to this MySQL server
During the mysqlcheck, this came up and stopped the repair:
Error : Server shutdown in progress
error : Corrupt
mysqlcheck: Got error: 2002: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) when executing 'REPAIR TABLE … ’
root@newweb:~#
rror : 127 when fixing table
status : Operation failed
mysqlcheck: Got error: 2013: Lost connection to MySQL server during query when executing 'REPAIR TABLE … ’
root@newweb:~#
Edit:
It does not actually appear that MySQL actually stopped running though…