Amazon-RDS database to Dedicated server

自闭症网瘾萝莉.ら 提交于 2019-12-13 05:27:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!