I have a server and occasionally the file mysqld.log would show something like
[ERROR] /usr/libexec/mysqld: Disk is full writing './example_com_-_wordpress/wp_statpress.MYD' (Errcode: 122). Waiting for someone to free space... Retry in 60 secs
How do I write a simple shell script to check mysqld.log every 15 mins and email me once it detects "Waiting for someone to free space"