Mysql 无法连接到Google cloudsql实例

Mysql 无法连接到Google cloudsql实例,mysql,node.js,google-app-engine,enoent,Mysql,Node.js,Google App Engine,Enoent,运行配置为使用具有适当实例名称的第二代MYSQL实例的Google Nodejs应用程序时,在repeat上发生eNote错误。这在使用cloudproxy的本地主机上工作,但在计算集群实例中产生以下错误。应用程序引擎部署也会出现类似错误 error when connecting to db: { Error: connect ENOENT cybers-cafe:us-east1:cybers-cafe at Object.exports._errnoException (util.

运行配置为使用具有适当实例名称的第二代MYSQL实例的Google Nodejs应用程序时,在repeat上发生eNote错误。这在使用cloudproxy的本地主机上工作,但在计算集群实例中产生以下错误。应用程序引擎部署也会出现类似错误

error when connecting to db: { Error: connect ENOENT cybers-cafe:us-east1:cybers-cafe
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
    --------------------
    at Protocol._enqueue (/home/jordocote/cybers-cafe-service/node_modules/mysql/lib/protocol/P
    at Protocol.handshake (/home/jordocote/cybers-cafe-service/node_modules/mysql/lib/protocol/
    at Connection.connect (/home/jordocote/cybers-cafe-service/node_modules/mysql/lib/Connectio
    at Timeout.handleDisconnect [as _onTimeout] (/home/jordocote/cybers-cafe-service/entities/r
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'connect',
  address: 'cybers-cafe:us-east1:cybers-cafe',
  fatal: true }
我尝试过使用各种socketPath值:

  • cybers cafe:us-east1:cybers cafe
  • /cloudsql/cybers cafe:us-east1:cybers cafe
  • MYSQL实例的IP地址(带和w/o端口)
  • 只有3306
它们在计算集群实例和应用引擎部署中都会产生相同的错误。我也无法从计算集群实例使用MYSQL客户端直接连接到MYSQL实例

我在文档中遵循了设置过程,如下所示:

env_variables:
  MYSQL_USER: ******
  MYSQL_PASSWORD: ***********
  MYSQL_DATABASE: cyberscafe
  # This path was printed to the console when you started the proxy, and is of
  # the format: `/[DIR]/[YOUR_PROJECT_ID]:[YOUR_REGION]:[YOUR_INSTANCE_NAME]`
  MYSQL_SOCKET_PATH: cybers-cafe:us-east1:cybers-cafe
beta_settings:
  # The connection name of your instance on its Overview page in the Google
  # Cloud Platform Console, or use `[YOUR_PROJECT_ID]:[YOUR_REGION]:[YOUR_INSTANCE_NAME]`
  cloud_sql_instances: cybers-cafe:us-east1:cybers-cafe

我也尝试过“cybers cafe”作为连接字符串。你是如何使用MYSQL\u SOCKET\u路径的?