问题
I went through this answer here: Mysqldump of the AWS RDS But, apparently, it gave me no clue.
What I intend to do?
I have an RDS instance running on amazon and database is about 450+ tables, which is an insane amount of data for mysqldump. I wish to have it dumped so that I can migrate it from AwS to Dedicated.
What is the problem?
It freezes once I start taking the dump via adminer. Snapshot gives a format which can be used from one region to another but, I wish to have it in say.. SQL format (to keep it simple) and then transfer it to my dedicated server.
Any ideas?
回答1:
450+ tables, which is an insane amount of data for sqldump
Assuming you mean mysqldump, that's not an accurate statement. I routinely use mysqldump on systems with 10,000+ tables and hundreds of millions of rows. Restoring the data on the new server may take some time, but that's true of anything stored in what you called "SQL format."
The --single-transaction
option in mysqldump will extract a consistent snapshot of all InnoDB tables; the --compress
option to mysqldump will use the mysql compressed client/server protocol to reduce the time it takes to extract the data without changing the contents of the dump file; and of course the --events
--triggers
and --routines
options are important.
来源:https://stackoverflow.com/questions/15153462/amazon-rds-database-to-dedicated-server