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
Post a Comment