title: Compare two MySQL databases, on command-line, with a free tool
body: <p>I would like to generate diff-like SQL files to compare the DATA and the STRUCTURE of two MySQL databases.</p>
  
  <p>These resulting files would be executed as SQL queries, on command-line.</p>
  
  <p>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).</p>
  
  <p>Also, the database should not be synced directly, but only by executing the resulting diff SQL script.</p>