MySQL Table Optimisation Script

I have created a bash script that checks the fragmentation of your MySQL tables and optimises them based on the fragmentation level.

To download and run, use the following steps:

wget http://www.barlow.eu.com/content/downloads/mysql-optimizetables.sh
chmod +x mysql-optimizetables.sh
./mysql-optimizetables.sh