Cloud SQL for MySQL のドキュメント
$300 分の無料クレジットを使用して概念実証を始める
-
Gemini 2.0 Flash Thinking をご利用いただけます。
-
AI API や BigQuery などの人気プロダクトの毎月の無料使用枠をご利用いただけます。
-
自動請求は行われず、契約も不要です。
常に無料で利用可能な 20 以上のプロダクトを確認する
AI API、VM、データ ウェアハウスなど、一般的なユースケース向けの 20 以上のプロダクトを無料でご利用いただけます。
トレーニング
トレーニングとチュートリアル
Google Cloud Fundamentals: Core Infrastructure
これらの講義、デモ、ハンズオンラボでは、Google Cloud のプロダクトとサービスの概要を学習し、Google Cloud の価値と、クラウドベースのソリューションをビジネス戦略に取り入れる方法を学びます。
トレーニング
トレーニングとチュートリアル
Architecting with Google Cloud: Design and Process
このコースでは、講義、設計アクティビティ、ハンズオンラボを通して、実績のある設計パターンを Google Cloud で使用して信頼性と効率に優れたソリューションを構築し、可用性と費用対効果が高いデプロイを実行する方法を学びます。
ユースケース
ユースケース
Oracle Database から Cloud SQL for MySQL へのクエリの変換と最適化
Oracle® と Cloud SQL for MySQL の基本的なクエリの違いと、Oracle の機能がどのように Cloud SQL for MySQL の機能に対応するかについて説明します。
移行
ユースケース
ユースケース
Oracle から Cloud SQL for MySQL への移行: 用語と機能
Oracle 11g/12c データベースから Cloud SQL for MySQL バージョン 5.7 の第 2 世代インスタンスへの移行を計画し、実施する際に必要な情報とガイダンスを提供するシリーズの一部です。
移行
ユースケース
ユースケース
データ所在地の概要
Cloud SQL を使用してデータ所在地に関する要件をデータに適用する方法を学びます。
データ所在地
データ
ユースケース
ユースケース
Secret Manager を使用して Cloud SQL でシークレットを処理する
Secret Manager を使用して Cloud SQL インスタンスとユーザーの機密情報をシークレットとして保存する方法を学びます。
Secret Manager
シークレット
コードサンプル
コードサンプル
Python SQLAlchemy
SQLAlchemy を使用して Cloud SQL for MySQL データベースに接続します。
コードサンプル
コードサンプル
Node.js サンプル
Node.js で Cloud SQL for MySQL データベースに接続します。
コードサンプル
コードサンプル
PHP PDO
PHP PDO を使用して Cloud SQL for MySQL データベースに接続します。
コードサンプル
コードサンプル
Go ウェブアプリのサンプル
Go を使用した Cloud SQL for MySQL への接続の簡単な例
コードサンプル
コードサンプル
.NET サンプル
このサンプル アプリケーションでは、Google App Engine フレキシブル環境での実行時に、MySQL データベースに Google Cloud SQL でデータを保存する方法を説明します。
コードサンプル
コードサンプル
Java サーブレット
Java アプリケーションから Cloud SQL for MySQL に接続します。
コードサンプル
コードサンプル
Terraform を使用して、プライベート ネットワーク オプションを選択して Cloud SQL for MySQL インスタンスを作成します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-04 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[],[],null,["# Cloud SQL for MySQL documentation\n=================================\n\n[Read product documentation](/sql/docs/mysql/features) Cloud SQL for MySQL is a fully-managed database service that\nhelps you set up, maintain, manage, and administer your\nMySQL relational databases on Google Cloud Platform.\nFor information specific to MySQL, see the\n[MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/) or\n[learn more about Cloud SQL for MySQL](/sql/docs/mysql/features).\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n [Create instances](/sql/docs/mysql/create-instance)\n\n-\n\n [Connection overview](/sql/docs/mysql/connect-overview)\n\n-\n\n [Enable and disable high availability on an instance](/sql/docs/mysql/configure-ha)\n\n-\n\n [Create and manage MySQL databases](/sql/docs/mysql/create-manage-databases)\n\n-\n\n [Create and manage MySQL users](/sql/docs/mysql/create-manage-users)\n\n-\n\n [Export and import using SQL dump file](/sql/docs/mysql/import-export/import-export-sql)\n\n-\n\n [Export and import using CSV files](/sql/docs/mysql/import-export/import-export-csv)\n\n-\n\n [Create backups](/sql/docs/mysql/backup-recovery/backups)\n\n-\n\n [Create read replicas](/sql/docs/mysql/replication/create-replica)\n\nfind_in_page\n\n### Reference\n\n-\n\n [gcloud sql command-line](/sql/docs/mysql/cloud-sdk)\n\n-\n\n [Use the Cloud SQL Admin API](/sql/docs/mysql/admin-api)\n\n-\n\n [REST API](/sql/docs/mysql/admin-api/rest)\n\n-\n\n [Best practices](/sql/docs/mysql/best-practices)\n\n-\n\n [Performance tips](/sql/docs/mysql/admin-api/how-tos/performance)\n\n-\n\n [Authorize requests](/sql/docs/mysql/admin-api/how-tos/authorizing)\n\n-\n\n [Configure VPC Service Controls](/sql/docs/mysql/admin-api/configure-service-controls)\n\n-\n\n [Cloud SQL Admin API error messages](/sql/docs/mysql/admin-api-error-messages)\n\ninfo\n\n### Resources\n\n-\n\n [Pricing](/sql/docs/mysql/pricing)\n\n-\n\n [Quotas and limits](/sql/docs/mysql/quotas)\n\n-\n\n [Troubleshoot](/sql/docs/mysql/troubleshooting)\n\n-\n\n [Cloud SQL feature support by database engine](/sql/docs/feature_support)\n\n-\n\n [Release notes](/sql/docs/mysql/release-notes)\n\n-\n\n [Billing questions](/sql/docs/mysql/billing-questions)\n\n-\n\n [Get support](/sql/docs/mysql/getting-support)\n\n-\n\n [Security bulletins](/sql/docs/mysql/security-bulletins)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Google Cloud Fundamentals: Core Infrastructure\n\n\nThese 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.\n\n\n[Learn more](/training/course/core-infrastructure) \nTraining \nTraining and tutorials\n\n### Architecting with Google Cloud: Design and Process\n\n\nThis 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.\n\n\n[Learn more](/training/course/architecting-design-process) \nUse case \nUse cases\n\n### Converting and optimizing queries from Oracle Database to Cloud SQL for MySQL\n\n\nDiscusses the basic query differences between Oracle® and Cloud SQL for MySQL, and how features in Oracle map to features in Cloud SQL for MySQL.\n\nMigration\n\n\u003cbr /\u003e\n\n[Learn more](/solutions/converting-optimizing-queries-oracle-database-cloud-sql-mysql) \nUse case \nUse cases\n\n### Migrating Oracle users to Cloud SQL for MySQL: Terminology and functionality\n\n\nPart 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.\n\nMigration\n\n\u003cbr /\u003e\n\n[Learn more](/solutions/migrating-oracle-users-to-mysql-terminology) \nUse case \nUse cases\n\n### Data residency overview\n\n\nLearn how to use Cloud SQL to enforce data residency requirements for data.\n\nData residency data\n\n\u003cbr /\u003e\n\n[Learn more](/sql/docs/mysql/data-residency-overview) \nUse case \nUse cases\n\n### Use Secret Manager to handle secrets in Cloud SQL\n\n\nLearn how to use Secret Manager to store sensitive information about Cloud SQL instances\nand users as secrets.\n\nSecret Manager secret\n\n\u003cbr /\u003e\n\n[Learn more](/sql/docs/mysql/use-secret-manager) \nCode sample \nCode Samples\n\n### Python SQLAlchemy\n\n\nUse SQLAlchemy with your Cloud SQL for MySQL database\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/cloud-sql/mysql/sqlalchemy) \nCode sample \nCode Samples\n\n### Node.js sample\n\n\nConnecting to your Cloud SQL for MySQL database in Node.js\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/cloud-sql/mysql/mysql) \nCode sample \nCode Samples\n\n### PHP PDO\n\n\nConnecting your Cloud SQL for MySQL database using PHP PDO\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/php-docs-samples/tree/main/cloud_sql/mysql/pdo) \nCode sample \nCode Samples\n\n### Go web app sample\n\n\nSimple examples of connecting to Cloud SQL for MySQL using Go\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/cloudsql/mysql/database-sql) \nCode sample \nCode Samples\n\n### .NET sample\n\n\nThis sample application demonstrates how to store data in Google Cloud SQL with a MySQL database when running in Google App Engine Flexible Environment.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/master/cloud-sql/mysql) \nCode sample \nCode Samples\n\n### Java servlet\n\n\nConnecting to Cloud SQL for MySQL from a Java application\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/cloud-sql/mysql/servlet) \nCode sample \nCode Samples\n\n### Terraform for Cloud SQL networking\n\n\nUse Terraform to create Cloud SQL for MySQL instances with private networking options.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/cloudnetworking-config-solutions)\n\nRelated videos\n--------------\n\n### Try Cloud SQL for yourself\n\nCreate an account to evaluate how our products perform in real-world scenarios. \nNew customers also get $300 in free credits to run, test, and deploy workloads. \n[Try Cloud SQL free](https://console.cloud.google.com/freetrial)"]]