Server Admin

Simple script to keep MySQL running

Sometimes MySQL crash for various reasons (out of memory), there is a simple hack to make sure MySQL running.

Save this to

Make it executable by chmod +x , and setup a cronjob as root for it to run periodically (e.g. every minute)

Note that this is not considered a good practice, you should find out what is crashing the DB/service, but it is a simple hack to save your some time.