# Cloud SQL for MySQL documentation

[Read product documentation](https://docs.cloud.google.com/sql/docs/mysql/features.md.txt) 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](https://dev.mysql.com/doc/refman/5.7/en/) or
[learn more about Cloud SQL for MySQL](https://docs.cloud.google.com/sql/docs/mysql/features.md.txt).

## Documentation resources

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

### Guides

-

  [Create instances](https://docs.cloud.google.com/sql/docs/mysql/create-instance.md.txt)

-

  [Connection overview](https://docs.cloud.google.com/sql/docs/mysql/connect-overview)

-

  [Enable and disable high availability on an instance](https://docs.cloud.google.com/sql/docs/mysql/configure-ha.md.txt)

-

  [Create and manage MySQL databases](https://docs.cloud.google.com/sql/docs/mysql/create-manage-databases.md.txt)

-

  [Create and manage MySQL users](https://docs.cloud.google.com/sql/docs/mysql/create-manage-users.md.txt)

-

  [Export and import using SQL dump file](https://docs.cloud.google.com/sql/docs/mysql/import-export/import-export-sql.md.txt)

-

  [Export and import using CSV files](https://docs.cloud.google.com/sql/docs/mysql/import-export/import-export-csv.md.txt)

-

  [Create backups](https://docs.cloud.google.com/sql/docs/mysql/backup-recovery/backups.md.txt)

-

  [Create read replicas](https://docs.cloud.google.com/sql/docs/mysql/replication/create-replica.md.txt)

### Reference

-

  [gcloud sql command-line](https://docs.cloud.google.com/sql/docs/mysql/cloud-sdk.md.txt)

-

  [Use the Cloud SQL Admin API](https://docs.cloud.google.com/sql/docs/mysql/admin-api.md.txt)

-

  [REST API](https://docs.cloud.google.com/sql/docs/mysql/admin-api/rest.md.txt)

-

  [Best practices](https://docs.cloud.google.com/sql/docs/mysql/best-practices.md.txt)

-

  [Performance tips](https://docs.cloud.google.com/sql/docs/mysql/admin-api/how-tos/performance.md.txt)

-

  [Authorize requests](https://docs.cloud.google.com/sql/docs/mysql/admin-api/how-tos/authorizing.md.txt)

-

  [Configure VPC Service Controls](https://docs.cloud.google.com/sql/docs/mysql/admin-api/configure-service-controls.md.txt)

-

  [Cloud SQL Admin API error messages](https://docs.cloud.google.com/sql/docs/mysql/admin-api-error-messages.md.txt)

### Resources

-

  [Pricing](https://docs.cloud.google.com/sql/docs/mysql/pricing)

-

  [Quotas and limits](https://docs.cloud.google.com/sql/docs/mysql/quotas.md.txt)

-

  [Troubleshoot](https://docs.cloud.google.com/sql/docs/mysql/troubleshooting.md.txt)

-

  [Cloud SQL feature support by database engine](https://docs.cloud.google.com/sql/docs/feature_support.md.txt)

-

  [Release notes](https://docs.cloud.google.com/sql/docs/mysql/release-notes.md.txt)

-

  [Billing questions](https://docs.cloud.google.com/sql/docs/mysql/billing-questions.md.txt)

-

  [Get support](https://docs.cloud.google.com/sql/docs/mysql/getting-support.md.txt)

-

  [Security bulletins](https://docs.cloud.google.com/sql/docs/mysql/security-bulletins.md.txt)

## Related resources

Training and tutorials Use cases Code samples 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](https://docs.cloud.google.com/training/course/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](https://docs.cloud.google.com/training/course/architecting-design-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](https://docs.cloud.google.com/solutions/converting-optimizing-queries-oracle-database-cloud-sql-mysql.md.txt)


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

<br />

Article Use cases

### [Migrating Oracle users to Cloud SQL for MySQL: Terminology and functionality](https://docs.cloud.google.com/solutions/migrating-oracle-users-to-mysql-terminology.md.txt)


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

<br />

Primer Use cases

### [Data residency overview](https://docs.cloud.google.com/sql/docs/mysql/data-residency-overview.md.txt)


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

Data residency data

<br />

Primer Use cases

### [Use Secret Manager to handle secrets in Cloud SQL](https://docs.cloud.google.com/sql/docs/mysql/use-secret-manager.md.txt)


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

Secret Manager secret

<br />

Code sample Code Samples

### [Python SQLAlchemy](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/cloud-sql/mysql/sqlalchemy)


Use SQLAlchemy with your Cloud SQL for MySQL database


Code sample Code Samples

### [Node.js sample](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/cloud-sql/mysql/mysql)


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


Code sample Code Samples

### [PHP PDO](https://github.com/GoogleCloudPlatform/php-docs-samples/tree/main/cloud_sql/mysql/pdo)


Connecting your Cloud SQL for MySQL database using PHP PDO


Code sample Code Samples

### [Go web app sample](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/cloudsql/mysql/database-sql)


Simple examples of connecting to Cloud SQL for MySQL using Go


Code sample Code Samples

### [.NET sample](https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/master/cloud-sql/mysql)


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](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/cloud-sql/mysql/servlet)


Connecting to Cloud SQL for MySQL from a Java application


Code sample Code Samples

### [Terraform for Cloud SQL networking](https://github.com/GoogleCloudPlatform/cloudnetworking-config-solutions)


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


## Related videos