Figured this out, it was adding this to the app.yaml

beta_settings:
      cloud_sql_instances: "<INSTANCE_CONNECTION_NAME>"


On Thursday, September 29, 2016 at 3:11:22 PM UTC-7, Kevin Lau wrote:
>
>
> down votefavorite 
> <http://stackoverflow.com/questions/39778544/why-does-my-php-app-engine-not-connect-to-cloud-sql#>
>
> I am trying to connect my app engine PHP app to cloud sql via unix socket 
> (I assume that is correct so that I don't have to connect to the ip). The 
> connect via IP works but the unix socket does not. Any ideas? It's also 
> weird that when I ssh into the box, I don't see any /cloudsql/ directory. I 
> can create it by manually starting cloud_sql_proxy but that doesn't persist 
> as soon as I turn debug off.
>
>
> I'm using: $db = new pdo( 
> 'mysql:unix_socket=/cloudsql/testproject-xxxxxx:us-central1:library;dbname=books',
>  
> 'phpapp', // username 'somepw' // password );
>
> And get SQLSTATE[HY000] [2002] No such file or directory
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/44ab841d-7e0c-4f10-b6e7-f20a9eb2edec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to