Created
March 26, 2012 23:19
-
-
Save smithcommajoseph/2210559 to your computer and use it in GitHub Desktop.
Skip phpMyAdmin and dump your DB using terminal commands
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
| mysqldump -u DATABASE_USER -p -h HOST DATABASE_NAME > FILE.sql |
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
| mysql -u DATABASE_USER -p -h HOST DATABASE_NAME < FILE.sql |
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
| site_name_$(date +%Y-%m-%d-%H%M.%S).sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment