Sent from my BlackBerry® by dtac. -----Original Message----- From: Bobert <balz.r...@googlemail.com> Sender: google-appengine-java@googlegroups.com Date: Sat, 21 Jan 2012 10:43:13 To: <google-appengine-java@googlegroups.com> Reply-To: google-appengine-java@googlegroups.com Subject: [appengine-java] Example GAE with Cloud Sql
Hello, I've tried this example https://developers.google.com/cloud-sql/docs/developers_guide_java modified with following changed code: public String getEmployee() throws SQLException { String name = ""; Connection c = null; c = DriverManager.getConnection("jdbc:google:rdbms://<Instance>/homecome"); //c = DriverManager.getConnection("jdbc:google:rdbms://<Instance>/homecome", "<username>@googlemail.com", "<pass>"); ResultSet rs = c.createStatement().executeQuery("Select name FROM friendgroup"); while (rs.next()){ name += " " + rs.getString("name"); } c.close(); return name + " - ok"; } But unfortunately I get following error. For <Instance>, <username> and <pass> I use the Right names. The database name is homecome. java.sql.SQLException: Access denied for user '<username>@googlemail.com'@'localhost' (using password: YES) What am I doing wrong, can someone help me? Thanks Bobert -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/fXfwMGYKBF0J. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.