I am using Java 8, so as to connect with Google Cloud SQL from Google Standard App Engine. Tried sample available at below link too so as to test connection https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/cloud-sql/mysql/servlet
Issues I am facing:
- If Connection name available at https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/cloud-sql/mysql/servlet/src/main/webapp/WEB-INF/appengine-web.xml, is incorrect I am able to get HTTP code 500, and error log at error console of google as instance name is wrong
- When I am using correct instance name, there is no error in error console, but connection is not working
I have following components available at my Google cloud:
- Java 8 based Standard App Engine Application
- Serverless VPC access under VPC network
- Cloud SQL 5.7 with Private IP
Thanks