Created
April 22, 2015 14:53
-
-
Save rodolfobandeira/49838e7a1f36a3c3b437 to your computer and use it in GitHub Desktop.
Export Amazon RDS mysql into a file or another database
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 -h RDS instance endpoint -u user -p password --port=3306 --single-transaction --routines --triggers --databases database database2 > path/rds-dump.sql | |
mysqldump -h RDS instance endpoint -u user -p password --port=3306 --single-transaction --routines --triggers --databases database database2 --compress --compact | mysql -h MySQL host -u master user -p password --port 3306 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment