Two problems can be the cause of your problem.
To find out what login is, use:
gcloud auth login
1. You do not have default credentials for the application
If you have the latest version of gcloud, you will get:
WARNING: `gcloud auth login` no longer writes application default credentials.
For your local application to use your credentials, you need to do ( ref ):
gcloud auth application-default login
, gcloud, :
gcloud components update
2.
:
Your current project is [project-id].
:
.
, (ref):
gcloud config set project PROJECT_ID
. --project
:
.\cloud_sql_proxy -instances=project-id:region-name:instance-id=tcp:3306 --project=project-id