
Mysql::diff is suite of perl modules and accompanying cli script for comparing the schema (table structures) of two mysql databases.
the package also contains the mysql-schema-diff script.
for further mysql helper scripts mysql-utilities might be interesting.