0
MacBook-Air-2:~ Owner$ gcloud sql instances describe ahaha-mysql

ERROR: (gcloud.sql.instances.describe) There was no instance found at projects/ahaha-20180621/instances/ahaha-mysql or you are not authorized to access it.
4

1 回答 1

0

您需要为计算实例启用访问云 sql 的权限

  1. 停止实例
  2. 编辑实例并更改 Cloud API 访问范围
  3. 启用 Cloud SQL
  4. 重启实例
  5. gcloud auth login按照链接(您可能需要在文本编辑器中修复它)并输入验证码,以您自己的身份运行和验证。
  6. 运行gcloud sql instances describe ahaha-mysql它现在应该可以工作
于 2018-11-14T22:45:05.107 回答