Jump to

Cloud SQL

Fully managed relational database service for MySQL, PostgreSQL, and SQL Server. Run the same relational databases you know with their rich extension collections, configuration flags and developer ecosystem, but without the hassle of self management.

  • action/check_circle_24px Created with Sketch.

    Reduce maintenance cost with fully managed MySQL, PostgreSQL and SQL Server databases

  • action/check_circle_24px Created with Sketch.

    Ensure business continuity with reliable and secure services backed by 24/7 SRE team

  • action/check_circle_24px Created with Sketch.

    Automate database provisioning, storage capacity management, and other time-consuming tasks

  • action/check_circle_24px Created with Sketch.

    Database observability made easy for developers with Cloud SQL Insights

  • action/check_circle_24px Created with Sketch.

    Easy integration with existing apps and Google Cloud services like GKE and BigQuery

Benefits

Secure and compliant

Data encryption at rest and in transit. Private connectivity with Virtual Private Cloud and user-controlled network access with firewall protection. Compliant with SSAE 16, ISO 27001, PCI DSS, and HIPAA.

Scale as you go

Scale your instances effortlessly with a single API call whether you start with simple testing or you need a highly available database in production.

Set up in minutes

Standard connection drivers and built-in migrational tools allow you to create and connect to your first database in just a few minutes.

Key features

Key features

Fully managed

Cloud SQL automatically ensures your databases are reliable, secure, and scalable so that your business continues to run without disruption. Cloud SQL automates all your backups, replication, encryption patches, and capacity increases—while ensuring greater than 99.95% availability, anywhere in the world.

Integrated

Access Cloud SQL instances from just about any application. Easily connect from App Engine, Compute Engine, Google Kubernetes Engine, and your workstation. Open up analytics possibilities by using BigQuery to directly query your Cloud SQL databases.

Reliable

Easily configure replication and backups to protect your data. Go further by enabling automatic failover to make your database highly available. Your data is automatically encrypted, and Cloud SQL is SSAE 16, ISO 27001, and PCI DSS compliant and supports HIPAA compliance.

Easy migrations to Cloud SQL

Database Migration Service (DMS) makes it easy to migrate your production databases to Cloud SQL with minimal downtime. This serverless offering eliminates the manual hassle of provisioning, managing, and monitoring migration-specific resources. DMS leverages the native replication capabilities of MySQL and PostgreSQL to maximize the fidelity and reliability of your migration. And it’s available at no additional charge for native like-to-like migrations to Cloud SQL. Learn more.

View all features

Customers

Learn from customers using Cloud SQL

What's new

Sign up for Google Cloud newsletters to receive product updates, event information, special offers, and more.

Documentation

Documentation

Google Cloud Basics
Cloud SQL features

View a breakdown of features and capabilities across Cloud SQL database services.

Tutorial
Connecting to Cloud SQL from external applications

Learn how to connect to Cloud SQL from applications running outside of Google Cloud.

Tutorial
Connecting MySQL client using public IP

Connect a MySQL client to your Cloud SQL instance–whether it’s running locally on your client machine or in Cloud Shell.

Google Cloud Basics
Cloud SQL for MySQL

Learn about the major features and capabilities of Cloud SQL for MySQL.

Tutorial
Get started with Cloud SQL for MySQL

In this tutorial, you'll: create a new MySQL instance, connect to it, set up and query a database, and clean up the instance.

Google Cloud Basics
High availability configuration

Get an overview of the high availability (HA) configuration for Cloud SQL instances.

Best Practice
Migrating MySQL to Cloud SQL

Best practices for using Database Migration Service for migrating MySQL to Cloud SQL for MySQL

Tutorial
Migrating Oracle to PostgreSQL

Learn how to migrate from Oracle to Cloud SQL for PostgreSQL with minimal downtime with Datastream.

Tutorial
Get started with Cloud SQL in this hands-on practice

Enroll in this Skills Boost quest to receive hands-on practice on Cloud SQL and apply this knowledge to production frameworks and application environments.

Use cases

Use cases

Use case
Build a containerized app with a scalable database

Google Kubernetes Engine enables rapid development by making it easy to deploy, update, and manage your applications and services. Cloud SQL makes it easy to set up, manage, and administer your PostgreSQL databases on Google Cloud. This use case is a building block of a microservices architecture that is backed by an independent storage service, decentralizing data management and ensuring that each service is independently scalable. Try the lab.

Architecture for building a containerized app: End user to HTTP ingress, which branches to four Kubernetes pods (Python + flask), 2 each in Zone A and in Zone B. The 2 pods in each zone merge into two Cloud SQL instances.

All features

All features

Fast, easy migrations Database Migration Service makes it easy to migrate databases from on-premises, Compute Engine, and other clouds to Cloud SQL with minimal downtime.
Secure access and connectivity Cloud SQL data is encrypted when on Google’s internal networks and when stored in database tables, temporary files, and backups. Cloud SQL supports private connectivity with Virtual Private Cloud (VPC), and every Cloud SQL instance includes a network firewall, allowing you to control public network access to your database instance.
Built-in high availability

Replicate your instance to another zone or region with just a click of a button. Leverage built-in HA to provide isolation from many types of infrastructure hardware, and software failures.

Cloud SQL for MySQL HA

Cloud SQL for PostgreSQL HA

Cloud SQL for SQL Server HA

Scalability Easily scale up as your data grows—add up to 96 processor cores and more than 624 GB of RAM and 30 TB of storage and add read replicas to handle increasing read traffic.
Cloud SQL Insights Quickly understand and resolve database performance issues on Cloud SQL. Pre-built dashboards and visual query plans help developers identify the root cause of problems. Access database metrics and traces in existing tools using OpenTelemetry. Monitor databases through the lens of the application using query tags.
Automatic storage increases Cloud SQL can automatically scale up storage capacity when you are near your limit. This way you don’t have to spend time estimating future storage needs or spend money on capacity until you need it.
High performance Cloud SQL supports performance-intensive workloads with up to 60,000 IOPS and no extra cost for IO.
Easy integration Access Cloud SQL instances from just about any application. Easily connect from App Engine, Compute Engine, Google Kubernetes Engine, and your workstation. Open up analytics possibilities by using BigQuery to directly query your Cloud SQL databases.
Real-time change data capture and replication Synchronize data across heterogeneous databases, storage systems, and applications reliably and with minimal latency with Datastream. Seamlessly deliver change streams from Oracle and MySQL databases into Google Cloud services such as BigQuery, Cloud SQL, Google Cloud Storage, and Cloud Spanner for up-to-date information.
Automatic backups Automate daily backups and binary logging (for replication or point-in-time recovery).
Point-in-time recovery Restore your instance to its state at an earlier point in time.
Compatibility Build and deploy for the cloud faster because Cloud SQL offers standard MySQL, PostgreSQL, and Microsoft SQL Server databases, ensuring application compatibility.
Standard APIs Build and deploy for the cloud faster because Cloud SQL offers standard MySQL, PostgreSQL, and SQL Server databases, ensuring application compatibility. Use standard connection drivers and built-in migration tools to get started quickly.

Pricing

Pricing

Cloud SQL offers sizes to fit any budget. Pricing varies with settings, including how much storage, memory, and CPU you provision. Cloud SQL offers per-second billing and database instances are easy to stop and start.

Partners

Partners

Our partners help you streamline the process of loading your data, create rich visualizations for meaningful insights, and monitor and manage your databases.