Google Plugin for Eclipse

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 appspot.com.

Prerequisites

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).

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.