Monday, January 30, 2012

Not Able to connect Google cloud sql from local system

Hi Dear
I tried to connect from Google cloud sql from local system with
bellow URL but i am getting the error
can anyone help me for the same.
connection string is

DriverManager.registerDriver(new AppEngineDriver());
con = DriverManager.getConnection("jdbc:google:rdbms://
xyz.com:teamgapputility:teammysql/gapp","userid","password");

error details:


he API package 'rdbms' or call 'OpenConnection()' was not found.
com.google.apphosting.api.ApiProxy$CallNotFoundException: The API
package 'rdbms' or call 'OpenConnection()' was not found.
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
at com.google.appengine.api.rdbms.RdbmsApiProxyClient
$ApiProxyBlockingInterface.makeSyncCall(RdbmsApiProxyClient.java:89)
at com.google.appengine.api.rdbms.RdbmsApiProxyClient
$ApiProxyBlockingInterface.openConnection(RdbmsApiProxyClient.java:75)
at
com.google.cloud.sql.jdbc.internal.SqlProtoClient.openConnection(SqlProtoClient.java:
58)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:59)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:26)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
com.gapp.utility.util.connectionMGR.getConnection(connectionMGR.java:
14)
at com.gapp.utility.util.connectionMGR.main(connectionMGR.java:29)

No comments:

Post a Comment