Importing data from .csv file

577 views
Skip to first unread message

Abhishek Mathur

unread,
Dec 1, 2011, 7:37:31 AM12/1/11
to google-cloud...@googlegroups.com
Hi everyone,

Is there any way to import data in cloud sql instance table using .csv file?
Importing data this way to individual tables help me getting my data to case sensitive cloud sql instance from my local case-sensitive
mysql server.

--Thanks,
Abhishek

Abhishek Mathur

unread,
Dec 1, 2011, 7:48:53 AM12/1/11
to google-cloud...@googlegroups.com
OOPs!!! I made a typo in hurry. my local mysql server is "case-insensitive".  :)

Ram Nathaniel

unread,
Sep 9, 2013, 6:37:33 AM9/9/13
to google-cloud...@googlegroups.com
This is what you do: (took me a while to find out)

1) install mysql locally on your computer, with the workbench (don't need the utilities)
2) create a local table and import the CSV into it.
3) export to a file
4) Go to google cloud storage and create a bucket (a folder), then put the dump file in it.
5) import into google cloud sql from the bucket.

It took me some time to figure this out (google help was not helpful at all!). Maybe their search engine will bring this in search results for others.

If it helped you, than add:
6) when you figure out something after a long search - write a post so others can google it :-)

Ram

Joe Faith

unread,
Sep 9, 2013, 12:43:20 PM9/9/13
to google-cloud...@googlegroups.com
Thanks Ram -- hopefully others will find it useful

We also hope to make this process easier soon

j




--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/f4c06a81-a2c5-44ed-9ef1-a2064a8362e8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Joe Faith | Product Manager | Google Cloud
Reply all
Reply to author
Forward
0 new messages