Thursday, November 15, 2018

[google-cloud-sql-discuss] Re: Cannot connect to Cloud SQL with Java SocketFactory Library

The Java programming language does not provide native support for Unix sockets. The easiest way to connect to a Second Generation instance without whitelisting IP addresses is to use the JDBC socket factory. You may gather more detail from the "Connecting to Cloud SQL from External Applications" online document

In what concerns JdbcIO, details and code samples are to be found on the "Class JdbcIO" page. What host name and port have you chosen? You seem to attempt connecting to a PostgreSQL instance. Relevant information can be found on the "Connecting from App Engine" page

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/381320d9-74ef-4a6f-a114-5fb993024b56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment