Can this only be done with the PDO or can it also be done with 
mysql_connect()

On Thursday, September 29, 2016 at 5:11:22 PM UTC-5, 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 [email protected].
To post to this group, send email to [email protected].
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/457d9652-38ab-424c-b357-4db3a1ab4f61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to