title: MySQL Dump All Databases and Create (or Recreate) them on Import?
body: <p>I was wondering how I can get the following file,</p>
  
  <pre><code>mysqldump -h server -u root -p --all-databases &gt; all_dbs.sql
  </code></pre>
  
  <p>to automatically create any databases that are not yet created, when imported. Also, if a database is already present, it should recreate it (overwriting the old one).</p>
  
  <p>Is this possible? Thanks!</p>