Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 无法使用节点应用程序引擎和TypeOrm连接到Google Cloud SQL_Node.js_Google App Engine_Google Cloud Platform_Google Cloud Sql_Typeorm - Fatal编程技术网

Node.js 无法使用节点应用程序引擎和TypeOrm连接到Google Cloud SQL

Node.js 无法使用节点应用程序引擎和TypeOrm连接到Google Cloud SQL,node.js,google-app-engine,google-cloud-platform,google-cloud-sql,typeorm,Node.js,Google App Engine,Google Cloud Platform,Google Cloud Sql,Typeorm,我正在使用打字和与;extra.socketPath;在或mconfig文件中。我得到: Error : Error: connect ENOENT /cloudsql/[project:region:instance] at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1113:14) ormConfig.json文件包含以下json内容: { "type": "mysql", "extra": { "socket

我正在使用打字和与;extra.socketPath;在
或mconfig
文件中。我得到:

Error : Error: connect ENOENT /cloudsql/[project:region:instance] at
PipeConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
ormConfig.json
文件包含以下json内容:

{
  "type": "mysql",
  "extra": {
    "socketPath": "/cloudsql/[project:region:instance]"
  },
  "username": "root",
  "password": "xxxx",
  "database": "yyy",
  "synchronize": true,
  "logging": false,
  "entities": [
    "build/entity/**/*.js"
  ]
}

原来的海报在一个相同的帖子上找到了一个补丁。他们通过使用云SQL IP作为他们的主机并更改防火墙来允许它工作