I have a google app engine connected project with which I am trying to connect to a google cloud sql database.I upload my project to google and via it I try to connect to th
Instance Id
by default contains the project Id. So don't explicitly add project Id again.
Project ID: sampleapp
Instance Id: sampleapp:instance1
(This is how google cloud sql creates by default)
Connections string:
Correct:
jdbc:google:mysql://sampleapp:instance1/dbname?user=root&password="+password+"useUnicode=true&characterEncoding=UTF-8";
In correct
jdbc:google:mysql://sampleapp:sampleapp:instance1/dbname?user=root&password="+password+"useUnicode=true&characterEncoding=UTF-8";