简体   繁体   English

将MySQL数据发送到Redshift

[英]Send MySQL data to Redshift

I am confused on how we can send MySQL data from MySQL database deployed in an EC2 instance to an Amazon RedShift cluster. 我对如何将MySQL数据从EC2实例中部署的MySQL数据库发送到Amazon RedShift集群感到困惑。

What are the ways that can be used for doing this task? 有什么方法可以用来完成这项任务?

Possible solutions: 可能的解决方案:

  1. Easiest solution should be "AWS Data Pipeline". 最简单的解决方案应该是“ AWS数据管道”。

  2. write output of your SQL Query into a CSV file --> zip it ( if huge data ) --> upload to S3 --> Use Redshift copy command to upload all these records in bulk into redshift. 将SQL查询的输出写入CSV文件->将其压缩(如果有大量数据)->上载到S3->使用Redshift copy命令将所有这些记录批量上载到redshift。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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