myisam_defrag

This utility uses SQL to retrieve a list of tables that exceed the predefined threshold, and then run an optimize upon them.

The configuration file /etc/myisam_defrag/myisam_defrag.conf

Crontab installation:

*/5 * * * * root /usr/bin/myisam_defrag

Runtime conf file overide

myisam_defrag -c /path/to/file.conf