Cloud SQL connection in Netbeans

439 views
Skip to first unread message

Mikael Saltzman

unread,
Jul 23, 2013, 9:12:42 AM7/23/13
to google-cloud...@googlegroups.com

Using Netbeans 7.3, I am trying to connect to my Cloud SQL instance uzing the "new connection wizard". I have authorized the project on my local machine with gauth using python 2.7. I though this would create the OAuth 2.0 tokens needed but when I test the connection using "com.google.cloud.sql.Driver", the connection cannot be established. I plan to deploy the Java application on App Engine, using some kind of ORM againts the

Any suggestions what to do to make this connection work?

Tony Tseng

unread,
Jul 23, 2013, 1:58:36 PM7/23/13
to google-cloud...@googlegroups.com
Hi Mikael,
Instead of using gauth, could you try google_sql.sh instead? Also please take a look at https://developers.google.com/cloud-sql/docs/external


On Tue, Jul 23, 2013 at 6:12 AM, Mikael Saltzman <mikaels...@gmail.com> wrote:

Using Netbeans 7.3, I am trying to connect to my Cloud SQL instance uzing the "new connection wizard". I have authorized the project on my local machine with gauth using python 2.7. I though this would create the OAuth 2.0 tokens needed but when I test the connection using "com.google.cloud.sql.Driver", the connection cannot be established. I plan to deploy the Java application on App Engine, using some kind of ORM againts the

Any suggestions what to do to make this connection work?

--
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-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mikael Saltzman

unread,
Jul 24, 2013, 7:43:19 AM7/24/13
to google-cloud...@googlegroups.com
Thank you Tony!

I have already tried google_sql.sh and pretty much everything else that I can find. Nothing seems to work.

Best,
Mikael

Mikael Saltzman

unread,
Jul 24, 2013, 9:03:07 AM7/24/13
to google-cloud...@googlegroups.com
Correction: I used the cmd file, as I am on a Windows 7 machine. When I run it I get an unauthorized_request. I have looked for oath2 tokens in the registry but found none.

Sergio Garcia Murillo

unread,
Jul 24, 2013, 9:11:47 AM7/24/13
to google-cloud...@googlegroups.com
Hi Mikael,

After connecting with google_sql.sh (to get the auth token), I was able to import the driver and connect the database from netbeans without issues.

Best regards
Sergio
--
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-d...@googlegroups.com.

Mikael Saltzman

unread,
Jul 24, 2013, 11:45:26 AM7/24/13
to google-cloud...@googlegroups.com
Hi! Congratulations! I think I'm going to try this on another computer as I suspect I have messed this one up ;)

Good to know it actually CAN work, though.

Best,
Mikael
Reply all
Reply to author
Forward
0 new messages