Cloud SQL for MySQL documentation

Cloud SQL for MySQL is a fully-managed database service that helps you set up, maintain, manage, and administer your MySQL relational databases on Google Cloud Platform. For information specific to MySQL, see the MySQL documentation or learn more about Cloud SQL for MySQL.

  • Get access to Gemini 2.0 Flash Thinking
  • Free monthly usage of popular products, including AI APIs and BigQuery
  • No automatic charges, no commitment
View free product offers

Keep exploring with 20+ always-free products

Access 20+ free products for common use cases, including AI APIs, VMs, data warehouses, and more.

Explore self-paced training from Google Cloud Skills Boost, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services.
training
Training and tutorials

These lectures, demos, and hands-on labs give you an overview of Google Cloud products and services so that you can learn the value of Google Cloud and how to incorporate cloud-based solutions into your business strategies.

training
Training and tutorials

This course features a combination of lectures, design activities, and hands-on labs to show you how to use proven design patterns on Google Cloud to build highly reliable and efficient solutions and operate deployments that are highly available and cost-effective.

use case
Use cases

Discusses the basic query differences between Oracle® and Cloud SQL for MySQL, and how features in Oracle map to features in Cloud SQL for MySQL.

Migration

use case
Use cases

Part of a series that provides key information and guidance related to planning and performing Oracle 11g/12c database migrations to Cloud SQL for MySQL version 5.7, second-generation instances.

Migration

use case
Use cases

Learn how to use Cloud SQL to enforce data residency requirements for data.

Data residency data

use case
Use cases

Learn how to use Secret Manager to store sensitive information about Cloud SQL instances and users as secrets.

Secret Manager secret

code sample
Code Samples

Use SQLAlchemy with your Cloud SQL for MySQL database

code sample
Code Samples

Connecting to your Cloud SQL for MySQL database in Node.js

code sample
Code Samples

Connecting your Cloud SQL for MySQL database using PHP PDO

code sample
Code Samples

Simple examples of connecting to Cloud SQL for MySQL using Go

code sample
Code Samples

This sample application demonstrates how to store data in Google Cloud SQL with a MySQL database when running in Google App Engine Flexible Environment.

code sample
Code Samples

Connecting to Cloud SQL for MySQL from a Java application

code sample
Code Samples

Use Terraform to create Cloud SQL for MySQL instances with private networking options.

Related videos

Create an account to evaluate how our products perform in real-world scenarios.
New customers also get $300 in free credits to run, test, and deploy workloads.