Created
February 26, 2017 20:42
-
-
Save onnimonni/72178e21190e20466a4555308aee0d65 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
databases=`mysql -e "SHOW DATABASES;" | grep -Ev "(Database|information_schema|performance_schema)"` | |
for db in databases; do | |
mysqldump --force --opt --databases $db > $db.sql | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment