I have an sql file that creates my mysql database and all my users and tables.
I am trying to figure out of there is a way I can automate using this sql file to initialize the database on my Google Cloud sql instance.
So far, the only way I have been able to determine, is that I use the gcloud sql connect command, and then just copy and paste the contents of the sql file into the mysql prompt.
There has got to be a better way though. Looking through the gcloud sql docs, I have not been able to find one. Am I missing something?