在我的GCP项目中,我正在尝试将Cloud SQL从一个子网移动到另一个子网。基本上,我创建了一个Cloud SQL实例,该实例使用google托管服务连接,IP范围由Google默认分配。我想要切换到我自己的CIDR,我通过创建的托管服务连接进行设置。
我正在遵循中的步骤,尝试切换到临时网络/私有网络,然后使用自己的托管服务连接连接回我的自定义私有网络。
$gcloud --project=myprj beta sql instance patch mydbid --network=tmp_vpc --no-assign-ip
The following message will be us
我在Google的同一个项目中有Cloud SQL和Instance。
我想通过命令行从实例连接Mysql (从)。
我正在使用命令连接:
gcloud sql connect cloud-sql-name --user=username
它的给予:
ERROR: (gcloud.sql.connect) There was no instance found or you are not authorized to connect to it.
我该怎么联系。
使用Google Cloud SQL,我试图将我的主实例恢复到以前的备份,但首先我想克隆我不想恢复的表和数据库的实例。在等待克隆一个多小时后,我取消了克隆,并尝试删除克隆的实例。但是,克隆现在处于维护状态,尝试删除时出现以下错误。
mycomputer:~ myuser$ gcloud sql instances delete cloned
All of the instance data will be lost when the instance is deleted.
Do you want to continue (Y/n)? y
ERROR: (gcloud.sql.insta
我正在尝试根据cloudsql实例是否有使用gcloud cli的推荐来筛选它们。
例如,我想列出接近存储容量的所有实例。
我试过了,但没有运气:
➜ gcloud sql instances list --project <project-name> --filter='recommendations:on'
➜ gcloud sql instances list --project <project-name> --filter='recommendations:*'
WARNING: The following filter ke
当我尝试用gcloud在GCE上创建一个实例时,我得到了下面的错误。
gcloud compute instances create --zone us-west1-a tunnel
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- The zone 'projects/project/zones/us-west1-a' does not have enough
resources available to fulfill the request.
Try a different zone