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.

Documentation resources

Find quickstarts and guides, review key references, and get help with common issues.

Guides

Reference

Resources

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

Data residency overview

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

Data residency data

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

Related videos

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 2026-03-19 UTC.