title: Using mysqldump and database users
body: <p>I'm attempting to assemble all the options that I need for mysqldump to create everything used by my applications database into a single script.  This includes the database itself and all the database users/passwords/privileges.</p>
  
  <p>I've got it all figured out with the exception of the user piece... here's what I'm currently using:</p>
  
  <pre><code>mysqldump -h host -u root -p \
      --add-drop-database --routines -B database_name &gt; backup.sql
  </code></pre>
  
  <p>So, what am I missing?</p>