Auto restart mysql in Linux server - Khac Tung Blog
This is not a clean solution, it would obviously be better to avoid the problem in the first place. Anyway, I am not sure how CentOS manages services but I think it uses service. If so, you can check if the mysql service is running with /sbin/service mysql status This command will exit successfully ifRead More