snipt

Ctrl+h for KB shortcuts

Bash

Backup ALL MySQL DBs

mysqldump -u username -ppassword –all-databases > dump.sql
https://snipt.net/embed/a427e3c7f3e7597add52df495bb61454/
/raw/a427e3c7f3e7597add52df495bb61454/
a427e3c7f3e7597add52df495bb61454
bash
Bash
1
2019-06-26T17:51:03
True
False
False
/api/public/snipt/6903/
backup-all-mysql-dbs
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mysqldump -u username -ppassword –all-databases &gt; dump.sql </span></pre></div> </td></tr></table>
archive, backup, mysql, shell