Node.js 无法使用节点应用程序引擎和TypeOrm连接到Google Cloud SQL
我正在使用打字和与;extra.socketPath;在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
或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作为他们的主机并更改防火墙来允许它工作