CloudSQL PDO(unix_socket) problems on Google App Engine
I'm trying to connect to my CloudSQL instance FROM App Engine. The way I've set it up is to use a static IP, which I can use to connect to it from outside App Engine (namely, on my development environment). However, when the app runs within GAE, the only way to connect to the database is using unix_socket. The only documentation I've found on this is Google's own docs . According to the documentation, this should be enough to connect: $db = new PDO('mysql:unix_socket=/cloudsql/my-prj:db1;charset=utf8', '<username>', '<password>' ); I am able to connect to the database using the root password I