Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Connecting from External Applications

Applications not running on Google App Engine can connect to Google Cloud SQL using the standard MySQL protocol. The steps are:

  1. Authorize the IP or range of IPs from which you will be connecting.

    You must be able to identify a range of IP addresses that you will be connecting from and authorize access for requests from these IP addresses. For an application running on Google Compute Engine, this will be the public IP address of the instance.

  2. Connect.

    After you have authorized access, you are ready to connect from MySQL client or any other Admin and Reporting Tools that support MySQL. If you are connecting programmatically, you can use any of the MySQL Connectors that provide standard database driver connectivity.

For any connection method you choose, you must specify the IP address of the Cloud SQL instance you are connecting to, and MySQL account information (user name and password). Optionally, you can specify an initial database to connect to, and certificates and keys to use for a secure connection over SSL. For instructions on creating a secure connection, see Configuring SSL for an Instance using the Google Developers Console or Creating a SSL Cert using the Cloud SDK.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.