Java – Configure MySQL for Google Appengine (Standard)

configure mysql for google appengine standard environment

In this post, you will learn about how to configure MySQL properties in your Spring Boot application for deploying it on Google AppEngine (Standard) environment. This article assumes that the MySQL database is set up as part of Google Cloud SQL fully-managed database service. The following will be covered:

  • Configuration properties in
  • Configure POM entries in pom.xml file

Configuration properties in

In file, while working with Spring Boot app with JPA repository, you need to have following configuration properties in file. The below assumes that you have a MySQL database with name as dbname and username/password as root/root.

In above properties, the instance connection name can be obtained from the project Cloud SQL page whose link could look like

While working in local environment, you could comment above properties and use the following:


POM entry in POM.xml file

The following POM entry needs to be put in pom.xml file.


While working in the local environment, one could comment above and rather use following POM entry:




In this post, you learned about how to configure MySQL properties in Spring Boot app for deploying it on Google App Engine (Standard) environment.

Did you find this article useful? Do you have any questions or suggestions about this article? Leave a comment and ask your questions and I shall do my best to address your queries.

Ajitesh Kumar
Follow me

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. For latest updates and blogs, follow us on Twitter. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking. Check out my other blog,
Posted in Google Cloud, Java, Web. Tagged with , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *