I have a website based on a MySQL server on an Ubuntu machine. Every several weeks, one of my users complains that the site does not work, and I find out (using service mysql status
) that it is because the MySQL server is down. I restart it (using service mysql restart
) and the site starts working fine again.
In /var/log/mysql/error.log
, the only error messages I see are of the form [ERROR] [MY-013134] [Server] Table 'XXX' is marked as crashed and should be repaired
. But, after I restart the server, I do not see any issue with the tables (I am not sure if this is the reason for the server going down).
These frequent failures are quite a nuisance both for me and for my users. How can I solve this problem?