This message was deleted.
# general
s
This message was deleted.
g
Have you enabled the Cloud SQL api for your project? Some of the google services must be enabled first. This is done in the google cloud console.
p
Thanks @gentle-diamond-70147! This was my first attempt after reading the message, but it did not change anything. I enabled SQL API and the SQL Admin API (just to be sure).
g
Are you able to manually create a database in the console?
p
Just checked,
Copy code
$ gcloud sql instances create test-db
 --database-version MYSQL_5_7 --storage-size=100
succeeds and I can see the DB in the GCloud UI.
I suspect some kind of (project) misconfiguration which tends to get badly reported by the Google APIs.
Found the culprit:
masterInstanceName
seems to need a special format (maybe sth. like
project/<project-id>/<name>
? Pure speculation) Removing it resulted in a working DB 🤦‍♂️ Thanks @gentle-diamond-70147 for your time!
g
Oh, interesting. That's an unfortunate response from the Google API - not particularly helpful.