Did you find a solution?
Il giorno domenica 27 maggio 2018 17:48:22 UTC+2, Lalit Indoria ha scritto:
-- Il giorno domenica 27 maggio 2018 17:48:22 UTC+2, Lalit Indoria ha scritto:
HiI am trying to connect to node JS from my sails js app that's hosted on App Engine in the same project as Cloud SQL. I have tried multiple combinations but failed every time.Here' what the log says:
name=AdapterError, adapterMethodName=create, modelIdentity=admin, name=Exception, code=badConnection, exit=badConnection, errorno=ETIMEDOUT, code=ETIMEDOUT, syscall=connect, fatal=true, host=35.230.110.241, port=3306, schema=true, adapter=sails-mysql, socketPath=/cloudsql/parsley-dev :us-west1:parsley-dev, user=parsley-dev, password=parsleyDevApi, database=parsley, identity=default, url=mysql://parsley-dev:parsleyDevApi@35.230.110.241: , isOperational=true, adapterMethodName=create, modelIdentity=admin, $ref=$["cause"]["raw"]3306/parsley
My sails JS adapter configuration:adapter: 'sails-mysql',
socketPath: `/cloudsql/${process.env.INSTANCE_CONNECTION_NAME}`,
user: process.env.SQL_USER,
password: process.env.SQL_PASSWORD,
host: '35.230.110.241',
database: 'parsley'
Would be great if someone can help me.
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/aa32314f-e149-4654-94ba-301f294c5a5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment