The Google Plugin for Eclipse is deprecated and will be removed in January 2018. Migrate to Cloud Tools for Eclipse and/or the GWT Eclipse Plugin as soon as possible to avoid disruption.

Getting Started with Using Cloud SQL in Eclipse

Google Cloud SQL is a fully managed, highly available relational database tightly integrated with Google App Engine. Google Cloud SQL supports connections using MySQL wire protocol and any of the MySQL Connectors that provide standard database driver connectivity. Therefore, you can use Eclipse to work with Cloud SQL database as you would any MySQL database.

This section will show you how to:

  • Create a web application project that connects to a local MySQL database or a Google Cloud SQL instance.
  • Use a coding pattern that sets the JDBC connection URI based on the running environment (local or deployed).
  • Use the MySQL Connector/J driver in projects when running the web application locally or when running deployed, for example, to


Before you create a web app that uses Cloud SQL, you must:

  1. Have a Google Cloud Platform project you can work with (see Creating a project).
  2. Have a Google Cloud SQL instance (see Creating a Google Cloud SQL instance).
  3. Have a database with some data (see Create your Google Cloud SQL database and tables).

Send feedback about...

Google Plugin for Eclipse