Skip to content

Instantly share code, notes, and snippets.

@steppefox
Created October 22, 2013 08:01
Show Gist options
  • Save steppefox/7096820 to your computer and use it in GitHub Desktop.
Save steppefox/7096820 to your computer and use it in GitHub Desktop.
Snippet for the full dumping of your MySQL
for dbname in `echo show databases| mysql -u user -ppass`; do
echo "Dump $dbname..."
mysqldump -u user -ppass $dbname > "$dbname.sql"
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment