Created
February 15, 2013 15:16
-
-
Save dsmeringe/4960983 to your computer and use it in GitHub Desktop.
Better mysql backup command. Dump list of databases with their routines (like stored procedures) (routines are normally left out) using compressed communication and adding a drop database statement in the beginning.
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
mysqldump -C --routines --add-drop-database -uUSERNAME -p --databases NAMES-OF-DATABASE-1 NAME-OF-DATABASE-2.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment