Cloud SQL

Focus on your application, and leave the database to us

Fully managed relational database service for MySQL, PostgreSQL, and SQL Server. More than 95% of Google Cloud's top 100 customers use Cloud SQL to run their businesses.

New customers get $300 in free credits to spend on Cloud SQL.

You won’t be charged until you upgrade.

Features

Fully managed

Cloud SQL manages your databases so you don't have to, so your business can run without disruption. It automates all your backups, replication, patches, encryption, and storage capacity increases to give your applications the reliability, scalability, and security they need.

Open and standards-based

Cloud SQL supports the most popular open source and commercial engines, including MySQL, PostgreSQL, and SQL Server with rich support for extensions, configuration flags, and popular developer tools. It's easy to get started—simply bring your existing skills over and enjoy the flexibility to work the way you want. You can create a database with just a few clicks in the console and connect your application.

Cost-effective

According to an IDC study, Cloud SQL customers achieved a three-year ROI of 246% and a payback period of 11 months. You can scale as your application grows, customize your machine types, and choose different levels of performance and availability, up to a 99.99% availability SLA. Committed use discounts offer additional savings for 1 to 3 year commitments.

Supports Gen AI

Extend your database application to build AI-powered experiences using the pgvector PostgreSQL extension, LangChain, and LLMs. Cloud SQL for PostgreSQL is great for storing vector embeddings from your ML models.

Easy migrations

No matter where your database is located—whether on-premises, on Compute Engine, or in other clouds—Database Migration Service (DMS) can migrate it securely and with minimal downtime. DMS leverages the native replication capabilities of the source database to maximize the reliability of your migration. And it’s available at no additional charge for migrations to Cloud SQL.


Intelligent insights and manageability

View AI/ML-driven insights and recommendations for performance, security, reliability, and cost. Quickly understand and resolve database performance issues through pre-built dashboards and visual query plans using Cloud SQL Insights. Cloud SQL with Active Assist uses advanced analytics and ML to identify over-provisioned and idle instances in your fleet and alert you as needed.

Integrated

Cloud SQL seamlessly integrates with Google Cloud services such as Compute Engine, Cloud Run, Google Kubernetes Engine, and Cloud IAM, allowing developers to build and deploy applications with ease. Provision your database via APIs and third-party tools, and use federated queries from BigQuery and low-latency database replication with Datastream for near real-time insights on operational data.

High availability

Configure built-in high availability (HA) with automatic failover across zones with just a click of a button to provide isolation from many types of infrastructure, hardware, and software failures. Optimize your database costs depending on your application—choose a 99.99% availability SLA (inclusive of maintenance) for business-critical transactional workloads or a 99.95% availability SLA to lower your costs.

Data protection and compliance

Configure backups for data protection and restore your instance to an earlier point in time with a retention period of up to 35 days. Configure where your data is stored to comply with data residency requirements. Cloud SQL automatically encrypts data, is SSAE 16, ISO 27001, and PCI DSS compliant, and supports HIPAA compliance. 

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. It supports private connectivity with Virtual Private Cloud (VPC), and every Cloud SQL instance includes a network firewall, allowing you to control public network access.

Scalability

Easily scale up as your data grows—add processor cores, RAM, and storage, and scale out by adding read replicas to handle increasing read traffic. Cloud SQL can also automatically scale up storage capacity when you are near your limit. Read replicas support high availability, can have their own read replicas, and can be located across regions and platforms.

Near-zero downtime for maintenance

Cloud SQL offers near-zero downtime of less than 10 seconds for planned maintenance. It also offers flexible maintenance window features like advance email notification and the ability to reschedule by 28 days, pick specific times for maintenance, and deny maintenance for up to 90 days.

Data cache

Cloud SQL can automatically accelerate your applications using built-in performance management techniques. Cloud SQL for MySQL also leverages flash memory on your database instance to lower read latency and improve throughput by intelligently caching data across memory and high speed storage.

Change data capture and replication

Stream data across heterogeneous databases, storage systems, and applications reliably and with minimal latency with Datastream. Scale up or down with a serverless architecture and no resources to provision or manage, and enable near real-time insights on operational data.

How It Works

Cloud SQL scales up in minutes and replicates data across zones and regions. It uses agents for maintenance, logging, monitoring, and configuration, with services backed by a 24/7 SRE team. Manage your database via the console, CLI, or REST API and connect your app via standard database drivers. 

Database Configurations with Cloud SQL video thumbnail

Common Uses

Database migration

Migrate to a fully managed database solution

Self-managing a database such as MySQL, PostgreSQL, or SQL Server can be inefficient and expensive, with significant effort around patching, hardware maintenance, backups, and tuning. Migrating to a fully managed solution has never been simpler—you can lift and shift your database from any on-premises or cloud location using Database Migration Service with minimal downtime.
Evolution of managed databases graph

Migrate to a fully managed database solution

Self-managing a database such as MySQL, PostgreSQL, or SQL Server can be inefficient and expensive, with significant effort around patching, hardware maintenance, backups, and tuning. Migrating to a fully managed solution has never been simpler—you can lift and shift your database from any on-premises or cloud location using Database Migration Service with minimal downtime.
Evolution of managed databases graph

Database modernization

Modernize your application with open source

A cloud deployment is a good opportunity to modernize your database environment by transitioning off legacy, proprietary databases and onto open source databases such as PostgreSQL. With open source databases having become enterprise-ready, you don't need to compromise on performance, reliability, or security.
Learn how to get started with Database Migration Service
Modernization image

    Modernize your application with open source

    A cloud deployment is a good opportunity to modernize your database environment by transitioning off legacy, proprietary databases and onto open source databases such as PostgreSQL. With open source databases having become enterprise-ready, you don't need to compromise on performance, reliability, or security.
    Learn how to get started with Database Migration Service
    Modernization image

      New application development

      Build data-driven applications

      Cloud SQL accelerates application development via integration with the larger ecosystem of Google Cloud services, Google partners, and the open source community, while giving you the freedom to work the way you want. Reuse your existing database skills while freeing yourself from mundane database administration tasks and leveraging AI/ML-driven insights and recommendations.

      Try the lab: building a containerized app with a scalable database
      Architecture image of containerized application with scalable database

      Build data-driven applications

      Cloud SQL accelerates application development via integration with the larger ecosystem of Google Cloud services, Google partners, and the open source community, while giving you the freedom to work the way you want. Reuse your existing database skills while freeing yourself from mundane database administration tasks and leveraging AI/ML-driven insights and recommendations.

      Try the lab: building a containerized app with a scalable database
      Architecture image of containerized application with scalable database

      Third-party applications

      Deploy applications with confidence

      Many software vendors build and certify their applications for MySQL, PostgreSQL, and SQL Server. Since Cloud SQL offers standard versions of these databases including extensions, configuration flags, and drivers, applications can run unmodified. Make your journey to the cloud and let us take tedious database administration tasks off your plate.
      Find a Google Cloud partner
      Partners

        Deploy applications with confidence

        Many software vendors build and certify their applications for MySQL, PostgreSQL, and SQL Server. Since Cloud SQL offers standard versions of these databases including extensions, configuration flags, and drivers, applications can run unmodified. Make your journey to the cloud and let us take tedious database administration tasks off your plate.
        Find a Google Cloud partner
        Partners

          Pricing

          How Cloud SQL pricing worksPricing varies with editions, engine, and settings, including how much storage, memory, and CPU you provision. Cloud SQL offers per-second billing.
          ServiceDescriptionPrice

          Compute

          Cloud SQL Enterprise

          Best for general purpose workloads. It offers:

          1-96 vCPUs

          1:6.5 core memory ratio

          99.95% SLA

          < 60s of planned downtime

          Starting at

          $0.0413

          per vCPU/hour

          Cloud SQL Enterprise Plus

          Best for high performance workloads. It offers:

          Up to 128 vCPUs

          1:8 core memory ratio

          99.99% SLA

          < 10 seconds of planned downtime

          2x read and write performance

          Starting at

          $0.05369

          per vCPU/hour

          Memory

          Cloud SQL Enterprise

          up to 624 GB

          Starting at

          $0.007

          per GB/hour

          Cloud SQL Enterprise Plus

          up to 824 GB

          Starting at

          $0.0091

          per GB/hour

          Storage - SSD

          Storage and networking prices depend on the region where the instance is located; Cloud SQL Enterprise pricing and Cloud SQL Enterprise Plus pricing are the same

          $0.17

          per GB/month

          Storage - Local SSD

          This is only available for Cloud SQL Enterprise Plus

          $0.16

          per GB/month

          PITR Logs on Google Cloud Storage

          Cloud SQL Enterprise

          Up to 7 days

          Free

          Cloud SQL Enterprise Plus

          Up to 35 days

          Free

          Get full details on pricing and learn about committed use discounts.

          How Cloud SQL pricing works

          Pricing varies with editions, engine, and settings, including how much storage, memory, and CPU you provision. Cloud SQL offers per-second billing.

          Compute

          Cloud SQL Enterprise

          Best for general purpose workloads. It offers:

          1-96 vCPUs

          1:6.5 core memory ratio

          99.95% SLA

          < 60s of planned downtime

          Starting at

          $0.0413

          per vCPU/hour

          Cloud SQL Enterprise Plus

          Best for high performance workloads. It offers:

          Up to 128 vCPUs

          1:8 core memory ratio

          99.99% SLA

          < 10 seconds of planned downtime

          2x read and write performance

          Starting at

          $0.05369

          per vCPU/hour

          Memory

          Cloud SQL Enterprise

          up to 624 GB

          Starting at

          $0.007

          per GB/hour

          Cloud SQL Enterprise Plus

          up to 824 GB

          Starting at

          $0.0091

          per GB/hour

          Storage - SSD

          Storage and networking prices depend on the region where the instance is located; Cloud SQL Enterprise pricing and Cloud SQL Enterprise Plus pricing are the same

          $0.17

          per GB/month

          Storage - Local SSD

          This is only available for Cloud SQL Enterprise Plus

          $0.16

          per GB/month

          PITR Logs on Google Cloud Storage

          Cloud SQL Enterprise

          Up to 7 days

          Free

          Cloud SQL Enterprise Plus

          Up to 35 days

          Free

          Get full details on pricing and learn about committed use discounts.

          Pricing Calculator

          Estimate your monthly Cloud SQL costs, including region specific pricing and fees.

          custom quote

          Connect with our sales team to get a custom quote for your organization.

          Start your Cloud SQL proof of concept

          Use your $300 credit (new users)

          Learn how to use Cloud SQL

          Build a resilient architecture with Cloud SQL

          Federate queries from BigQuery into Cloud SQL

          Migrate a database to Cloud SQL using DMS

          Business Case

          More than 95% of Google Cloud’s top 100 customers use Cloud SQL


          Manhattan Associates logo

          We run hundreds of Cloud SQL instances and operate most of them with just a few database administrators (DBA). By offloading the majority of our database management tasks to Cloud SQL, we significantly reduced the cost to maintain Manhattan Active Platform databases.

          Sanjeev Siotia SVP and CTO, Manhattan Associates

          Manhattan Associates enhanced the scalability, availability, and reliability of its software-as-a-service, while significantly reducing the cost to manage the application, through a seamless migration to Cloud SQL.

          Read customer story

          Featured benefits


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

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

          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 supports HIPAA compliance.

          • Wayfair logo
          • MLB logo
          • BBVA logo
          • Autotrader logo

          Partners & Integration

          Accelerate your workloads by working with a partner
          • Dataiku
          • Deepnote
          • Hex
          • Starburst
          • Tellius
          • Zing
          • Dataiku
          • Deepnote
          • Hex
          • Starburst
          • Tellius
          • Zing
          • Percona logo
          • Pythian logo
          • Quantiphi logo
          • SADA logo
          • Searce logo
          • 66 degrees logo
          • Airbyte
          • CData
          • Arcion
          • Census
          • Confluent
          • Dataddo
          • Denodo
          • Fivetran
          • Hasura
          • Hevo
          • Integrate.io
          • KingswaySoft
          • Nexla
          • Qlik
          • Quest
          • Rivery
          • Retool
          • Skyvia
          • Striim
          • Talend
          • Datadog
          • Dynatrace
          • Masthead
          • New Relic
          • Soda
          • Heimdall Data
          • PolyScale
          • Vaultree

          Build data-driven applications with Google Cloud Ready - Cloud SQL validated partners, and visit the partner directory for a full list of Cloud SQL partners.

          FAQ

          Other questions and support
          Google Cloud
          • ‪English‬
          • ‪Deutsch‬
          • ‪Español‬
          • ‪Español (Latinoamérica)‬
          • ‪Français‬
          • ‪Indonesia‬
          • ‪Italiano‬
          • ‪Português (Brasil)‬
          • ‪简体中文‬
          • ‪繁體中文‬
          • ‪日本語‬
          • ‪한국어‬
          Console
          Google Cloud