google app engine - How to connect to a Cloud SQL instance in Netbeans -


using netbeans 7.3, trying connect cloud sql instance. have authorized project on local machine gauth using python 2.7. though create oauth 2.0 tokens needed when test connection using "com.google.cloud.sql.driver", connection cannot established. plan deploy java application on app engine, using kind of orm againts

any suggestions make connection work?

i had same problem yesterday : must download , launch google cloud sql command line tool. allow authorize google account access cloud sql service oauth2 authentication on local machine.

follow steps described here : https://developers.google.com/cloud-sql/docs/commandline

once application deployed on app engine, need configure database allow application access it. that's pretty straightforward, see google apis console :https://code.google.com/apis/console/

edit : can use simple mysql jdbc connector , configure cloud sql instance fixed ip. means can access cloud sql instance anywhere classic mysql databse.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -