snipt

Ctrl+h for KB shortcuts

Bash

mysqldump

$ mysqldump -u [username] -p [password] --databases [databasename] > [file_path]
https://snipt.net/embed/aed7d2073f4869bba3ca46a3bbd1944f/
/raw/aed7d2073f4869bba3ca46a3bbd1944f/
aed7d2073f4869bba3ca46a3bbd1944f
bash
Bash
1
2019-07-10T00:02:15
True
False
False
/api/public/snipt/11760/
mysqldump-1
<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 <span class="o">[</span>username<span class="o">]</span> -p <span class="o">[</span>password<span class="o">]</span> --databases <span class="o">[</span>databasename<span class="o">]</span> &gt; <span class="o">[</span>file_path<span class="o">]</span> </span></pre></div> </td></tr></table>
mysql, mysqldump