Problem: after restart mysql, it will shut down within few days eventually .
Solution: for me it is because the cache memory is not enough. So first edit the mysql config file:
vi /etc/my.cnf
and change below code:
[inonodb] innodb_buffer_pool_size=8MB
set a smaller one is better. Then save & close.