ENOENT when connecting to Google Cloud SQL from App Engine

后端 未结 3 962
既然无缘
既然无缘 2021-02-20 08:25

I\'m trying to deploy my Node.js app on Google App Engine and it deployed fine, but it can\'t connect to Google Cloud SQL for some reason. Here\'s what it throws:



        
3条回答
  •  梦如初夏
    2021-02-20 08:51

    make sure you have added following setting in app.yaml

    beta_settings:
      # The connection name of your instance, available by using
      # 'gcloud beta sql instances describe [INSTANCE_NAME]' or from
      # the Instance details page in the Google Cloud Platform Console.
      cloud_sql_instances: YOUR_INSTANCE_CONNECTION_NAME
    

    ref:https://cloud.google.com/appengine/docs/flexible/nodejs/using-cloud-sql-postgres

提交回复
热议问题