

Well, at least for me I froze for 2 whole minutes before I figure out there is a button to connect to it. But some people might have difficulty to connect with CloudSQL database. You just need to connect to the CloudSQL and use your standard query SQL to create new database, new table etc. It is actually a simple things to create CloudSQL database. Prepare Google Storageįirst, let’s see how GCP dashboard look like at this url and you will see something like this: Or if you are here just for the juicy code, you can check the Github repository here. It will a long article but I will provide a subheading so you can jump to specific part of this article that you need.
Sequel pro copy as csv how to#
How to import SQL file from GCS to CloudSQL using NodeJS.How to upload local file to GCS using NodeJS.How to access CloudSQL using Google Cloud Shell and Sequel Pro.How to get Google Cloud Storage and CloudSQL credential JSON file.How to set up Google Cloud Storage and CloudSQL.I will include as much screenshot as possible for you visual learner out there so I hope from this article you can learn: So, in this article I will explain step-by-step on how you can use NodeJS to upload an SQL file to GCS then import it to CloudSQL. It’s so frustrating and time consuming therefore I don’t want anyone else to go through the same pain and suffering that I experienced.

Well, honestly I don’t think the later is possible :).įor this project, I spend hours on stackoverflow and watch bunch of youtube videos just to understand how to make Google Cloud Platform works on my NodeJS. Or maybe I’m not smart enough to understand the documentation. I mean when people say documentation, they usually means step-by-step guide that targeted to someone that never use the product so they could understand and use the product, right? But I suppose google have their own definition of documentation. But, my excitement doesn’t last long because the documentation for using NodeJS to access google storage and CloudSQL is too unpractical for me. At first I was so excited having a chance to play around with Google Cloud Platform since I’m too lazy to get myself a credit card and register for the Google Cloud Platform trial. This month I get an interesting project that require me to learn about Google Cloud or more specifically BigQuery, Google Cloud Storage (GCS) and CloudSQL.

Upload and Import SQL file from Google Cloud Storage to CloudSQL using NodeJS
