简体   繁体   中英

AWS RDS: import data from sql file in S3 bucket

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?

  • 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM