cloud_sql_proxy给"error reading config"...我该如何解决这个问题?



我让gcloud在电源外壳中工作:

> gcloud version
Google Cloud SDK 375.0.0
bq 2.0.74
core 2022.02.25
gsutil 5.6

我一直在尝试按照以下指示让我的Sql Management Studio连接到Google Sql服务:https://cloud.google.com/sql/docs/sqlserver/connect-admin-proxy#start-代理

但我得到了这个错误:

PS C:gcloud_stuff> ./cloud_sql_proxy -instances=<my instance connection>=tcp:1433
2022/03/06 02:02:51 GcloudConfig: error reading config: exit status 1; stderr was:
The system cannot find the path specified.
The system cannot find the path specified.
2022/03/06 02:02:51 google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

有人知道怎么解决这个问题吗?(我是谷歌云的新手(

看起来您没有本地凭据集。

您可以运行gcloud auth login,然后重试。或者,您可以创建一个服务帐户密钥,并使用-credentials_file标志将其传递给代理。有关详细信息,请参阅代理文档。

最新更新