title: restore all mysql database from a --all-database sql.gz file
body: <p>I've backed all my mysql databases with he following command</p>
  
  <pre><code>mysqldump -u root -ppasswod --all-databases | gzip &gt; all.sql.gz
  </code></pre>
  
  <p>just wanted to know will I be able to restore all of the database with  following command</p>
  
  <pre><code>gunzip &lt; alldb.sql.gz | mysql -u root -ppassword -h localhost
  </code></pre>
  
  <p>can you also tell me how to back up all of mysql users too?</p>
  
  <p>I cant test it because I'm not sure and I don't want to break any db on my current system </p>