MySQL: Difference between revisions

Jump to navigation Jump to search
12 bytes added ,  7 November 2017
Line 79: Line 79:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ mysqldump --master-data --databases `mysql -B -N -e "SHOW DATABASES LIKE 'foobar%'" -uroot -p` -uroot -p
$ mysqldump --master-data --databases `mysql -B -N -e "SHOW DATABASES LIKE 'foobar%'" -uroot -p` -uroot -p > dbdump.db
</syntaxhighlight>
</syntaxhighlight>


Navigation menu