Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: (gcloud.sql.instances.describe) HTTPError 404: The Cloud SQL instance does not exist, but it does exist?

I'm getting this error:

ERROR: (gcloud.sql.instances.describe) HTTPError 404: The Cloud SQL instance does not exist.

When calling:

gcloud sql instances describe my-project

from my windows cmd within the Google Cloud SDK Shell. However, when I look at my instances on my Google Cloud Platform interface I can see that the corresponding instance. All indicates that it DOES exist. Anyone have a solution?

like image 507
coding duck Avatar asked Dec 21 '18 23:12

coding duck


2 Answers

LundinCast had the right answer in comments. Your problem can be resolved by following the instance name with --project="[projectname]".

like image 83
SJC Avatar answered Nov 15 '22 23:11

SJC


Try to run following to list your instances:

gcloud sql instances list
like image 5
EleaCode Avatar answered Nov 15 '22 23:11

EleaCode