I am trying to connect to some database located in Google Cloud SQL from a java web application deployed on AWS Elasic Beanstalk (with Eclipse), using the JDBC method.
String url = ConfigUtilities.getProperty("DATABASE_CONNN_URL_" + mode);
conn = DriverManager.getConnection(url, ConfigUtilities.getProperty("USERNAME_DB_" + mode),
ConfigUtilities.getProperty("PASSWORD_DB_" + mode));
The url looks like this
DATABASE_CONNN_URL_PRODUCTION=jdbc:google:mysql://project-name:europe-west1:instance-name/db-name
I have the following jar attached: mysql-connector-java-6.0.6.jar (located in lib folder under WEB-INF).
I get the following error
No suitable driver found for jdbc:google:mysql://project-name:europe-west1:instance-name/db-name
The same application deployed in App Engine works.