AWS RDS: import data from sql file in S3 bucket

偶尔善良 提交于 2020-06-16 17:45:39

问题


I have a database backup as sql file stored in s3 bucket. How can I import this file to the Aurora RDS directly without downloading it to my PC and import it manually?


回答1:


  • If your data is a valid SQL dump, you can specify its S3 key while creating a new Aurora instance (via the AWS Console wizard or via CLI with --s3-bucket-name ... --s3-ingestion-role-arn ... --s3-prefix ... etc.).
  • If you want to import CSV, XML or something like that, Aurora MySQL 1.8+ is providing the LOAD DATA FROM S3/LOAD XML FROM S3 query for this purpose.


来源:https://stackoverflow.com/questions/50338397/aws-rds-import-data-from-sql-file-in-s3-bucket

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