Mysql shuts down periodically and unable to access via phpMyAdmin

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:


set a smaller one is better. Then save & close.

You may also like...