Last active
December 16, 2015 08:29
-
-
Save vishaltelangre/5406030 to your computer and use it in GitHub Desktop.
MySQL dump and restore 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
# take dump of specific db | |
mysqldump -u vishal -p foo_db_dev > foo_db_dev_dump.sql | |
# take dump of all available databases | |
mysqldump -u vishal -p -r -A > foo_db_dev_dump.sql | |
# import dump of specific db | |
mysql --verbose -u vishal -p --default-character-set=utf8 foo_db_dev < foo_db_dev_dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment