2
votes

When I try to connect to Google Cloud SQL via the Cloud Shell, I get the following error:

gcloud beta sql connect mysql-1 --user=root
ERROR: (gcloud.beta.sql.connect) You do not have permission to access instance [mysql-1]: The client is not authorized to make this request.

I am not sure what permission is required to grant this access.

1

1 Answers

4
votes

It turns out that I typed in my project name incorrectly when configuring the CLI.

gcloud config set project PROJECT_ID