My bad.
Got it working.
I was entering information in the wrong spot.
Turned out to be a bug in the code.
I had to change the user in the url to be root.
if (SystemProperty.environment.value() ==
SystemProperty.Environment.Value.Production) {
// This is App Engine
Class.forName("com.mysql.jdbc.GoogleDriver");
//url = "jdbc:google:mysql://" + instanceId + "/" + database +
"?user=" + user;
url = "jdbc:google:mysql://" + instanceId + "/" + database +
"?user=root";
conn = DriverManager.getConnection(url);
} else {
On Wednesday, March 30, 2016 at 4:25:40 PM UTC-7, alexryan wrote:
>
>
> I'm coded up the sample app from chapter 11 "Using Google Cloud SQL with
> App Engine" in the book "Programming Google App Engine with Java
> <http://ae-book.appspot.com/>".
>
> It runs fine locally when talking to my local MySQL instance.
> Reading and writing to MySQL locally no problem.
>
> However, when I try to deploy it to app engine ...
> from Eclipse Luna, using the latest version of the eclipse plugin ...
> I edit the "App Engine Project Settings" ...
> I enable the "Google Cloud SQL" ...
> I select to "Use a Google Cloud SQL instance" ...
> I enter the correct information in the popup ...
> but then I get this really weird error ....
>
>
>
> <https://lh3.googleusercontent.com/-vz0jzqVILmw/Vvxaupzn0qI/AAAAAAAAtMo/449tTI1irkA2WR7uDHFuq6Wo7c25gfeNQ/s1600/Screen%2BShot%2B2016-03-30%2Bat%2B3.59.59%2BPM.png>
>
>
>
> <https://lh3.googleusercontent.com/-MfboOizGtyQ/VvxbVl4hmSI/AAAAAAAAtMw/BJqUhQtw0-0z71FdW3Et9fRue2NNhc3UA/s1600/Screen%2BShot%2B2016-03-30%2Bat%2B4.00.28%2BPM.png>
>
>
>
>
>
> <https://lh3.googleusercontent.com/-mZEjO2wM2co/VvxaD8hE_zI/AAAAAAAAtMg/Gjgn4Ivep9sc4bPuPEyFCGi3Uq6xiYuhQ/s1600/Screen%2BShot%2B2016-03-30%2Bat%2B2.49.21%2BPM.png>
>
>
> I am at a loss for how to fix this.
>
> It seems to be referencing the MySQL driver.
>
> I don't now why.
>
> I have completely deleted that driver from my project and yet I am still
> getting this error.
>
>
> The information in this "Configure Google Cloud SQL Instance" window is
> 100% correct (to the best of my knowledge).
>
>
> And we have authorized this app engine app to access our Google Cloud SQL
> instance on console.cloud.google.com.
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/5b3ca3ff-a3ff-4bc1-acb1-504b3cc0d1e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.