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.
Start your proof of concept with $300 in free credit
- Get access to Gemini 2.0 Flash Thinking
- Free monthly usage of popular products, including AI APIs and BigQuery
- 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.
Documentation resources
Related resources
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.
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.
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.
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.
Data residency overview
Learn how to use Cloud SQL to enforce data residency requirements for data.
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.
Python SQLAlchemy
Use SQLAlchemy with your Cloud SQL for MySQL database
Node.js sample
Connecting to your Cloud SQL for MySQL database in Node.js
PHP PDO
Connecting your Cloud SQL for MySQL database using PHP PDO
Go web app sample
Simple examples of connecting to Cloud SQL for MySQL using Go
.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.
Java servlet
Connecting to Cloud SQL for MySQL from a Java application
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
New customers also get $300 in free credits to run, test, and deploy workloads.