Thursday, April 26, 2018

[google-cloud-sql-discuss] Communications link failure exception (mysql - cloud sql)

Hi there, we are new with this service. We created a mysql instance and we followed the documentation of using cloud sql for mysql with java (https://cloud.google.com/appengine/docs/standard/java/cloud-sql/using-cloud-sql-mysql). we tested with the sample provided by appengine (https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java8/cloudsql). when deploying we get this exception:

org.eclipse.jetty.servlet.ServletHolder$1: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 
 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

the properties we used to build the link connection is : 

<INSTANCE_CONNECTION_NAME>theplayer-game:us-central1:socialboards</INSTANCE_CONNECTION_NAME>
    <user>root</user>
    <password>password</password>
    <database>sqldemo</database>

Any idea how to handle this ?

Cheers.

--
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/cfa25a23-b3ce-4d96-8fc9-1537868087d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment