load data from s3 to mySQL running EC2 instance (not RDS)

Viewed 4099

I want to able able to use the load data infile command in mySQL, but instead of loading the data from a local file I want to load it from a CSV file.

I.e., if the file is in local storage it'd look like:

LOAD DATA INFILE'C:\\abc.csv' INTO TABLE abc

But if it's in S3, not sure how I could do something like this.

Is this possible?

NOTE: this is not an RDS machine, so this command does not seem to work: http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-template-copys3tords.html

1 Answers
Related