MySQL DB Dump and Grant Export

This script performs mysql dump for all database, it creates a tar file, kicks out one liner's for creating databases on destination server and spits out current user grants. Great for using on server consolidations where you can't just sync /var/lib/mysql.