Friday, October 19, 2018

[google-cloud-sql-discuss] Re: SQLSTATE[HY000] [2002] No such file or directory, google cloud app engine flexible

Hello Parth, 

The recommended way to connect to Cloud SQL is detailed in the "Using Cloud SQL for MySQL" online document. The env_variables entry in your app.yaml should look analogous to: 

env_variables:
  SQL_USER: YOUR_SQL_USER
  SQL_PASSWORD: YOUR_SQL_PASSWORD
  SQL_DATABASE: YOUR_SQL_DATABASE
  # e.g. my-awesome-project:us-central1:my-cloud-sql-instance
  INSTANCE_CONNECTION_NAME: YOUR_INSTANCE_CONNECTION_NAME

--
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/4b413e61-c59f-4219-9f69-0395e37ac174%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment