Install libmysql-diff-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libmysql-diff-perl
module for comparing the table structure of two MySQL databases
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.