Tuesday, November 19, 2013

Re: ava.sql.SQLInvalidAuthorizationSpecException Not authorized to access instance




On Tue, Nov 19, 2013 at 3:18 PM, jeff schulz <developer@gubo.com> wrote:
a follow-up concerning connecting from app-engine application:

this document https://developers.google.com/appengine/docs/java/cloud-sql/#Java_Connect_to_your_database says:
...
Class.forName("com.mysql.jdbc.GoogleDriver");
url = "jdbc:google:mysql://your-project-id:your-instance-name/guestbook?user=root";
...
Connection conn = DriverManager.getConnection(url);

im using:
private final String url = "jdbc:google:rdbms://application-id:instance-id/database";
DriverManager.registerDriver( new AppEngineDriver() );
connection =  DriverManager.getConnection( url );

is this usage of AppEngineDriver correct ?

The jdbc:google:rdbms:// is deprecated so please use the jdbc:google:rdbms://.

A correct set of examples are here:

 
if so, can it be documented on same page.


Which page? :-)

-- Razvan ME
 
thanks :)


--
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/98968bdd-7a68-44de-9093-87c587a90802%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
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/CA%2BUvTg02RqZ%2BhhVAu7serS%3Dnq5aZXNnnTG9FWpft%3DjDB84jbYw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment