Use mk-table-sync from the Maatkit toolkit for MySQL.
From the documentation:
Make slave1 have the same data as its replication master: mk-table-sync --execute --sync-to-master slave1
In addition to being able to automatically add tables to sync, it has the -dry-run argument, which simply displays the SQL queries necessary to execute it manually. This is great for convincing yourself that you have chosen the correct command line arguments for mk-table-sync and that it will work correctly when you really synchronize tables.
source share