Trigger Importing Dump SQL File to Cloud SQL

50 views
Skip to first unread message

Ahmed Mohamed

unread,
May 26, 2021, 4:30:00 AM5/26/21
to Google Cloud SQL discuss
Hi everyone, 

The Scenario: 
I am receiving a dump SQL file every day on my Cloud storage bucket and I need to automate importing this file to Cloud SQL as soon as the file arrived in GCS. 

My suggestion is to use a Cloud function to trigger Cloud SQL when the file arrives in GCS. but I don't know how to achieve this process (importing to Cloud SQL) in the programmatic (Pythonic) way. 

 Does anybody have any idea that will help me achieve this?


Thanks, Ahmed

Jaime (Google Cloud Platform Support)

unread,
May 28, 2021, 6:32:23 AM5/28/21
to Google Cloud SQL discuss
Hello,

In order to get help from the community, I recommend that you post this how to question on StackOverFlow. You can check information about this in the Community Support article.
However, in this link you can find information on how to connect to Cloud SQL from Cloud Functions.
Reply all
Reply to author
Forward
0 new messages