I would like to generate diff-like SQL files to compare the DATA and the STRUCTURE of two MySQL databases.
These resulting files would be executed as SQL queries, on command-line.
There is various old threads related on SO, and on various forums, but they deal with non-free tool with user interface (not command-line tools).
Also, the database should not be synced directly, but only by executing the resulting diff SQL script.