首页 文章

使用Cloud Shell连接到Google Cloud SQL的问题

提问于
浏览
2

当我尝试通过Cloud Shell连接到Google Cloud SQL时,出现以下错误:

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.

我不确定授予此访问权限需要什么权限 .

1 回答

  • 4

    事实证明,在配置CLI时我输入的项目名称不正确 .

    gcloud config set project PROJECT_ID
    

相关问题