Hi Jay - it sounds like you're trying to connect to Cloud SQL _from_ App 
Engine Standard.

There are two ways to do this:

1. Unix socket. 
See https://cloud.google.com/appengine/docs/standard/nodejs/using-cloud-sql
2. TCP connection. To do this, you must connect to a public IP Cloud SQL 
address from Google App Engine.

On Tuesday, 26 June 2018 13:02:12 UTC-6, Jay wrote:
>
> I can’t get the answer from stack exchange because there’s no way to do it 
> as you mentioned. Then, let me change my question.
> Why don’t you support TCP connection proxy for App Engine? Many modern SQL 
> libraries do not support UNIX connection, and it prevents us to use Cloud 
> SQL.
>
> On Mon, Jun 25, 2018 at 1:30 PM 'Jordan (Cloud Platform Support)' via 
> Google App Engine <google-a...@googlegroups.com <javascript:>> wrote:
>
>> In-bound socket connections are not supported in App Engine (some 
>> runtimes 
>> <https://cloud.google.com/appengine/docs/standard/python/sockets/>support 
>> outbound connections with limitations). Therefore, the correct way to 
>> connect to your SQL instance from App Engine is via a UNIX socket 
>> connection from your application code to the local SQL proxy built into App 
>> Engine. This can be done easily via a supported API in the runtime language 
>> you chose as shown in the documentation 
>> <https://cloud.google.com/appengine/docs/standard/python/cloud-sql/using-cloud-sql-mysql#code_sample_overview>
>>  (example 
>> for Python).
>>
>> - Note: Google Groups is reserved for general product discussions and is 
>> not for technical support. If you require further technical support for 
>> connecting your App Engine application to Cloud SQL, it is recommended to 
>> post your detailed questions <https://stackoverflow.com/help/how-to-ask> 
>> to Stack Exchang <https://cloud.google.com/support/docs/stackexchange>e 
>> using the supported Cloud tags.  
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/qY00qmXpPPo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-appengi...@googlegroups.com <javascript:>.
>> To post to this group, send email to google-a...@googlegroups.com 
>> <javascript:>.
>> 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/87acab90-b9ee-4c31-a006-562780df2dcb%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/87acab90-b9ee-4c31-a006-562780df2dcb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/66269cf8-cd83-4a51-8ac5-13a3d67c1b03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to