mysql not able to java project deployed in google compute engine

50 views
Skip to first unread message

workf...@gmail.com

unread,
Apr 23, 2015, 11:23:34 AM4/23/15
to google-a...@googlegroups.com
I have created a compute engine instance and have installed MySQL also authorized to cloud sql instance. don`t know what other settings to be done using ssl, searched a lot but not getting the exact settings to be done in VM instance to connect my java project to mysql.
Initially getting this error:
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.

Vinny P

unread,
Apr 27, 2015, 12:26:59 AM4/27/15
to google-a...@googlegroups.com

On Thu, Apr 23, 2015 at 10:23 AM, <workf...@gmail.com> wrote:
I have created a compute engine instance and have installed MySQL also authorized to cloud sql instance. don`t know what other settings to be done using ssl, searched a lot but not getting the exact settings to be done in VM instance to connect my java project to mysql.


If you're having issues with a Compute Engine machine, you should cross post to the Compute Engine group: https://groups.google.com/forum/#!forum/gce-discussion

Unfortunately the error you posted has many causes; it's difficult to pin down without further information. Can you post the rest of the error message/stack trace? Have you tried enabling Cloud SQL access from your Compute Engine machine: http://imgur.com/ohlUq7r ?

 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Reply all
Reply to author
Forward
0 new messages