在AWS RDS MySQL db之间传输数据

rig*_*gyt 3 mysql mysqldump heroku amazon-web-services amazon-rds

将数据从一个amazon rds mySQL实例传输到另一个aws帐户的RDS mySQL实例的最佳方法是什么?

这是为了将Heroku上的网站转移给其他所有者.

leo*_*ges 8

如果它只是那么小,只需使用mysqldumpmysql客户端中的实用程序.

#note I'm piping it through GZip for compression. It will save you bandwidth
$ mysqldump -u user --password=passowrd -h your_rds_host db_name | gzip -c > db.sql.gz

#unzip the dump
$ gunzip db.sql.gz

#restore on the destination
$ mysql -u user --password=passowrd -h your_destination_rds_host db_name < db.sql
Run Code Online (Sandbox Code Playgroud)

这应该够了吧.