ENOENT when connecting to Google Cloud SQL from App Engine

后端 未结 3 960
既然无缘
既然无缘 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 09:15

    Check your logs for any errors during startup using:

    1. the following cmd gcloud app logs tail -s default or,

    2. with the log viewer https://console.cloud.google.com/logs/viewer

    Chances are that you have not enabled the Cloud SQL API for your project: https://console.developers.google.com/apis/api/sqladmin/overview

提交回复
热议问题