Google Cloud offers $300 in free credits for new customers. Try Cloud SQL for free.

Jump to
Cloud SQL for MySQL

Cloud SQL for MySQL

MySQL is the world's most popular open source relational database. With Cloud SQL for MySQL, you can spend less time on your database operations and more time on your applications.

New customers get $300 in free credits to spend on Cloud SQL for MySQL. You won’t be charged until you upgrade.

Key features

Key features of Cloud SQL for MySQL

Compatible

Continue to use the same administration tools, such as MySQL Workbench, mysqldump, phpMyAdmin, dbForge Studio, Toad Edge for MySQL, and the MySQL CLI, which is integrated in our Cloud SDK. Experience full support for all major versions of MySQL, and get access to nearly 200 flags to optimize your environment. Get started fast with easy, serverless migrations using Database Migration Service.

Fully managed and trusted

Cloud SQL automatically ensures your MySQL databases are reliable, secure, and scalable, so your business continues to run without disruption. Automate all your backups, failover, replication, software patching, and capacity increases—with up to a 99.99% availability SLA. Use high availability and business continuity to recover from an incident with zero data loss, backed by a world-class 24/7 SRE team. Cloud SQL offers near-zero downtime of less than 10 seconds for planned maintenance, with flexible maintenance windows.

Integrated

You can access Cloud SQL from virtually any application. Easily connect from Google Compute Engine, Google Kubernetes Engine, or your workstation. Deliver change streams from your Oracle and MySQL databases into Cloud SQL with Datastream. Visualize your data with Looker. Open analytics possibilities by using BigQuery to directly query your databases.

High performance and security

Cloud SQL uses built-in software optimizations to reduce transaction commit latency and improve write throughput, and leverages flash memory on your database instance to lower read latency and improve throughput by intelligently caching data across memory and high speed storage. Your data is secured with automatic encryption at rest and in transit, with integrated support for customer-managed encryption keys, Cloud IAM database authentication, Virtual Private Cloud (VPC), and user-controlled network access with firewall protection to control public network access.

Database observability for DevOps

Quickly understand and resolve database performance issues on Cloud SQL for MySQL using Cloud SQL Insights. Identify the root cause of issues using pre-built dashboards and visual query plans. Quickly access database metrics and traces in existing tools using OpenTelemetry. Monitor databases through the lens of your applications using query tags.

Songkick logo
Today, all our databases run on Cloud SQL for MySQL. Our total data usage is around 1.25 TB, which includes about 400 GB of event data and 100 GB of tracking data.

Sam Rudge, Systems Support and Infrastructure Architect, Songkick.com

Read blog

Documentation

Find resources and documentation for Cloud SQL for MySQL

Google Cloud Basics

Cloud SQL for MySQL features

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

Google Cloud Basics

High availability configuration

An overview of the high availability (HA) configuration for Cloud SQL for MySQL instances.

Best Practice

Migrating MySQL to Cloud SQL for MySQL

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

Quickstart

Cloud SQL for MySQL Qwik Start Lab

Learn how to create and connect to a Google Cloud SQL MySQL instance and perform basic SQL operations using the Cloud Console and the MySQL client.

Tutorial

Using phpMyAdmin with Cloud SQL

Learn how to use phpMyAdmin with Cloud SQL on App Engine standard environment.

Google Cloud Basics

Migrate to Cloud SQL with Database Migration Service

Google Cloud’s Database Migration Service helps make database migrations to Cloud SQL simple and secure.

Not seeing what you’re looking for?

All features

Learn more about Cloud SQL for MySQL features

Compatibility

Build and deploy for the cloud faster because Cloud SQL offers standard MySQL databases, ensuring application compatibility.

Fast, easy, and secure migrations

Database Migration Service makes it easy to migrate databases from on-premises, Compute Engine, and other clouds to Cloud SQL for MySQL with minimal downtime.

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.

Secure access and connectivity

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 for MySQL instance includes a network firewall, allowing you to control public network access to your database instance.

Automatic backups and point-in-time recovery

Automate daily backups and binary logging to restore your instance to its state at an earlier point in time.

Easy integration

Access Cloud SQL for MySQL 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.

Scalability

Easily scale up as your data grows—add up to 96 processor cores, 624 GB of RAM, and 60 TB of storage. Add read replicas to handle increasing read traffic. Automatic storage increases eliminate the need to estimating future storage needs or spend money on capacity before you need it.

Maintenance on your terms

Fast, automated maintenance keeps your instances patched and stable. We notify you a week in advance—you can delay by up to a week based on your needs, and specify maintenance denial periods of up to 90 days.

Vector Search

Cloud SQL for MySQL supports two search approaches for balancing speed and accuracy. Approximate nearest neighbor (ANN) vector search is ideal for large datasets where close matches suffice, while exact k-nearest neighbor (KNN) vector search is used for precision. Integrate vector search directly into your existing database for real-time search context without learning a separate system. 

LangChain integration

Easily build gen AI applications that are more accurate, transparent, and reliable with LangChain integration. Cloud SQL has three LangChain integrations - Document loader for loading and storing information from documents, Vector stores for enabling semantic search, and Chat Messages Memory for enabling chains to recall previous conversations. Visit the GitHub repository to learn more.

Pricing

Cloud SQL for MySQL pricing details

Cloud SQL for MySQL offers cost-effective options to fit every budget. Choose Cloud SQL Enterprise for general purpose workloads or Cloud SQL Enterprise Plus for high performance, business-critical workloads. Pricing varies with settings, including how much CPU, memory, and storage you provision.

Cloud SQL offers per-second billing and database instances are easy to stop and start.

Take the next step

Start building on Google Cloud with $300 in free credits and 20+ always free products.

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