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/83bf1720-0593-47e8-9b45-42d766650daf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.