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. For information specific to MySQL, see the MySQL documentation or learn more about Cloud SQL for MySQL.

Start your proof of concept with 300ドル in free credit

  • Develop with our latest Generative AI models and tools.
  • Get free usage of 20+ popular products, including Compute Engine and AI APIs.
  • No automatic charges, no commitment.

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, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services.
Training
Training and tutorials

Google Cloud Fundamentals: Core Infrastructure

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

Architecting with Google Cloud: Design and Process

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

Converting and optimizing queries from Oracle Database to Cloud SQL for MySQL

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

Migrating Oracle users to Cloud SQL for MySQL: Terminology and functionality

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

Data residency overview

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

Data residency data

Use case
Use cases

Use Secret Manager to handle secrets in Cloud SQL

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

Python SQLAlchemy

Use SQLAlchemy with your Cloud SQL for MySQL database

Code sample
Code Samples

Node.js sample

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

Code sample
Code Samples

PHP PDO

Connecting your Cloud SQL for MySQL database using PHP PDO

Code sample
Code Samples

Go web app sample

Simple examples of connecting to Cloud SQL for MySQL using Go

Code sample
Code Samples

.NET sample

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

Java servlet

Connecting to Cloud SQL for MySQL from a Java application

Code sample
Code Samples

Terraform for Cloud SQL networking

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

Related videos

Try Cloud SQL for yourself

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月21日 UTC.