gpt4 book ai didi

google-cloud-platform - Google Cloud SQL 从第一代迁移到第二代

转载 作者:行者123 更新时间:2023-12-01 13:10:16 25 4
gpt4 key购买 nike

  • Google Cloud SQL:从第一代 SQL 升级到第二个 MySQL 工作台后,无法连接我在云中的实例。为什么?
    也许你需要做实例 5.7 ?
  • 谷歌应用引擎:SQL从第一代升级到第二代MySQL打开一个新的WEB应用并连接到我在云中的项目,它看不到我的实例。为什么?
  • 最佳答案

    这三种配置中的任何一种都可能最终阻止来自 GAE 的连接:

    a) 如果您没有为实例分配任何公共(public) IP 地址;
    唯一的连接选项是:Configuring Serverless VPC Access .

    b) Confirm and complete the upgrade阅读:

    If your applications are connecting using the First Generation instance connection name:

    <project_id>:<instance_id>

    update them to use the Second Generation instance connection name:

    <project_id>:<region>:<instance_id>


    c)另一个可能的罪魁祸首是使用的服务帐户 - 并且它被分配了角色:

    App Engine uses a service account to authorize your connections to Cloud SQL. This service account must have the correct IAM permissions to successfully connect. Unless otherwise configured, the default service account is in the format service-PROJECT_NUMBER@gae-api-prod.google.com.iam.gserviceaccount.com.



    Authorization with authorized networks从 GAE 连接时通常不需要。

    关于google-cloud-platform - Google Cloud SQL 从第一代迁移到第二代,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60555138/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com