问题
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