Created
March 31, 2014 06:58
-
-
Save firstrow/9886757 to your computer and use it in GitHub Desktop.
Dumps all databases to separate file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -uroot -pmysqlpass -e 'show databases' | while read dbname; do mysqldump -uroot -pmysqlpass "$dbname" > "$dbname".sql; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment