What is Cloud SQL?

This page discusses basic Cloud SQL concepts and terminology. For a more in-depth explanation of key concepts, see the key terms and features pages. For information about how Cloud SQL databases compare with one another, see Cloud SQL feature support by database engine.

Cloud SQL manages your database instance. You manage your data.

Use cases for Cloud SQL

Cloud SQL provides a cloud-based alternative to local MySQL, PostgreSQL, and SQL Server databases. You should use Cloud SQL if you want to spend less time managing your database and more time using it.

Many applications running on Compute Engine, App Engine and other services in Google Cloud use Cloud SQL for database storage.

What Cloud SQL provides

Cloud SQL offers many services so you don't have to build and maintain them yourself. You can focus on your data and let Cloud SQL handle the following operations:

Cloud SQL instance overview

Cloud SQL also lets you create and delete databases and database users, but it isn't a database administration tool. There are many database administration tools you can choose from, depending on your database engine, including the following:

What you pay for

Cloud SQL pricing varies with your configuration settings, and depends on:

  • How much storage you provision, in GiB per month
  • How many CPUs you select for your Cloud SQL instance
  • How much memory you select for your Cloud SQL instance
  • Where you choose to host your data
  • How much network traffic leaves your instance
  • How many IP addresses you assign and use

Check out some Cloud SQL pricing examples. For more information, see the pricing page.

Connecting to a Cloud SQL managed database

Connecting to a Cloud SQL managed database is similar to connecting to a self-managed database. Depending on how you configure it, your Cloud SQL instance will have a Public IP address (which can be accessed from outside of Google Cloud, using the internet), or a Private IP address (which can only be accessed through a Virtual Private Cloud (VPC) network). In addition, Cloud SQL provides different authorization options to control who is allowed to connect to your instance, such as the Cloud SQL Auth proxy.

For more details on how to connect and authorize to your Cloud SQL instance, see the Connecting Overview page.

What's next

Try out one or more of the quickstarts for: