Created
October 16, 2017 15:39
-
-
Save webrgp/a928864dc0ace5cc2193d7973a81c583 to your computer and use it in GitHub Desktop.
Dump databases from MAMP
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
# based on https://gist.github.com/salcode/9142815 | |
for I in $(/Applications/MAMP/Library/bin/mysql -u root -proot -e 'show databases' -s --skip-column-names); do /Applications/MAMP/Library/bin/mysqldump -u root -proot $I > "$I.sql"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment