简体   繁体   English

我无法在gcloud sql上使用任何命令

[英]I can't use any commands on gcloud sql

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.

You will need to enable permission for the compute instance to access the cloud sql 您将需要为计算实例启用权限以访问云sql

  1. Stop the instance 停止实例
  2. Edit the instance and change the Cloud API access scopes 编辑实例并更改Cloud API访问范围
  3. Enable Cloud SQL 启用Cloud SQL
  4. Restart the instance 重新启动实例
  5. run gcloud auth login and authenticate as yourself by following the link (you might need to fix it in a text editor) and entering the verification code. 运行gcloud auth login并通过链接(您可能需要在文本编辑器中对其进行修复)并输入验证码来进行身份验证。
  6. run gcloud sql instances describe ahaha-mysql this should now work 运行gcloud sql instances describe ahaha-mysql这现在应该可以工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 gcloud无法访问云SQL - gcloud can't access cloud sql 如何仅使用SQL来实现动态WHERE-Clause? (我不能使用任何编程语言字符串concatentaion) - How can I implement a Dynamic WHERE-Clause using only SQL? (I can't use any programming language string concatentaion) 我如何将 2 个 sql 命令与 1 个阅读器一起使用? - How would i use 2 sql commands with 1 reader? 我不能在 MySQL 命令中使用变量 - ı can't use variables in MySQL commands 我可以使用 gcloud sql 命令在我的 Google Cloud Sql 实例上运行 sql 文件吗 - Can I run an sql file on my Google Cloud Sql instance using the gcloud sql command gcloud PHP 未连接到 sql - gcloud PHP doesn't connect to sql 当我在PHP中使用mysql命令时,没有向数据库添加任何记录 - no adding any record to database when i use mysql commands in php 有什么办法可以更改此SQL查询,以使其不返回任何包含空格的结果? - Is there any way that I can alter this SQL query so that it doesn't return any results containing whitespace? 在终端OS X中无法使用mysql命令 - Can't use mysql commands in terminal OS X sql 命令以获取在拼车数据库模式中未提供任何乘车服务的用户 - sql commands to fetch the users who didn't offerd any rides in carpooling databasel schema
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM