Database Migration Service 文档
Database Migration Service 可帮助您将数据迁移到 Google Cloud。该服务可简化网络工作流程、管理初始快照和持续复制,并提供迁移操作的状态。
借助 Database Migration Service,无论您是继续使用相同的数据库引擎(同构迁移),还是改用其他数据库引擎(异构迁移),都可以执行最短停机时间迁移。
获享 $300 免费赠金开始概念验证
-
体验 Gemini 2.0 Flash Thinking
-
免费使用热门产品(包括 AI API 和 BigQuery)的每月用量
-
不会自动收费,无需承诺
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
培训
培训和教程
Database Migration Service API 简介
本指南介绍了有关使用 Database Migration Service API 的最佳实践和设置信息。
培训
培训和教程
gcloud SDK 简介
在本指南中,您将了解如何使用 gcloud 命令行工具管理 Database Migration Service 中的连接配置文件和迁移作业。
使用场景
使用场景
同构数据库迁移的最佳实践
了解在兼容的数据库引擎之间迁移数据的技巧。
使用场景
使用场景
准备 PostgreSQL 以便使用 Database Migration Service 进行迁移
了解如何设置源 PostgreSQL 数据库,以便 Database Migration Service 可以将数据从该数据库迁移到 Cloud SQL。
使用场景
使用场景
使用 Database Migration Service 进行 PostgreSQL 迁移
了解如何使用 Database Migration Service 将 PostgreSQL 实例及其数据库迁移到 Cloud SQL for PostgreSQL。了解整个迁移过程的准备步骤和最佳实践。
使用场景
使用场景
Database Migration Service 连接:技术简介
深入了解 Database Migration Service 如何连接到源数据库和目标数据库,以便将数据从源数据库迁移到目标数据库。
使用场景
使用场景
缩小差距:使用 Database Migration Service 时迁移的完整性
了解 Database Migration Service 包含和不包含哪些内容,以及在使用 Database Migration Service 时可以采取哪些措施来确保迁移的完整性。
使用场景
使用场景
使用 Database Migration Service 将 MySQL 数据迁移到 Cloud SQL
在此培训中,您将通过实践实验室使用 Database Migration Service 将 MySQL 数据迁移到 Cloud SQL。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-05。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-05。"],[[["\u003cp\u003eDatabase Migration Service simplifies the process of migrating MySQL and PostgreSQL workloads to Cloud SQL and AlloyDB for PostgreSQL, as well as modernizing Oracle workloads to Cloud SQL for PostgreSQL or AlloyDB for PostgreSQL.\u003c/p\u003e\n"],["\u003cp\u003eThe service streamlines networking, manages data snapshots and replication, and provides status updates on migration operations.\u003c/p\u003e\n"],["\u003cp\u003eUsers can begin migrations with just a few clicks, benefiting from a single integrated experience for a quick start with Cloud SQL or AlloyDB for PostgreSQL.\u003c/p\u003e\n"],["\u003cp\u003eDatabase Migration Service minimizes downtime during the migration process through continuous data replication.\u003c/p\u003e\n"]]],[],null,["# Database Migration Service documentation\n========================================\n\n[Read product documentation](/database-migration/docs/overview)\nDatabase Migration Service helps you migrate your data to Google Cloud. The service streamlines networking\nworkflows, manages the initial snapshot and ongoing replication,\nand provides a status of the migration operations.\n\n\nWith Database Migration Service, you can perform minimal downtime migrations whether you keep the same database\nengine (homogeneous migrations) or switch to a different database engine (heterogeneous migrations).\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. \nstorage\n\n### Homogeneous migrations\n\n-\n\n [From MySQL to Cloud SQL for MySQL](/database-migration/docs/mysql/migration-src-and-dest)\n\n-\n\n [From PostgreSQL to Cloud SQL for PostgreSQL](/database-migration/docs/postgres/migration-src-and-dest)\n\n-\n\n [From PostgreSQL to AlloyDB for PostgreSQL](/database-migration/docs/postgresql-to-alloydb/migration-src-and-dest)\n\n-\n\n [From SQL Server to Cloud SQL for SQL Server](/database-migration/docs/sqlserver/scenario-overview)\n\nstorage\n\n### Heterogeneous migrations\n\n-\n\n [From SQL Server to Cloud SQL for PostgreSQL](/database-migration/docs/sqlserver-to-csql-pgsql/scenario-overview)\n\n-\n\n [From SQL Server to AlloyDB for PostgreSQL](/database-migration/docs/sqlserver-to-alloydb/scenario-overview)\n\n-\n\n [From Oracle to Cloud SQL for PostgreSQL](/database-migration/docs/oracle-to-postgresql/scenario-overview)\n\n-\n\n [From Oracle to AlloyDB for PostgreSQL](/database-migration/docs/oracle-to-alloydb/scenario-overview)\n\ngroup_work\n\n### Reference and resources\n\n-\n\n [Supported sources](/database-migration/docs/supported-databases)\n\n-\n\n [Pricing](/database-migration/pricing)\n\n-\n\n [Quotas and limits](/database-migration/docs/quotas)\n\n-\n\n [Diagnose issues](/database-migration/docs/diagnose-issues)\n\n-\n\n [Release notes](/database-migration/docs/release-notes)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \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### About the Database Migration Service API\n\n\nIn this guide, you learn best practices and setup information for using the Database Migration Service API.\n\n\n[Learn more](/database-migration/docs/use-the-database-migration-service-api) \nTraining \nTraining and tutorials\n\n### About the gcloud SDK\n\n\nIn this guide, you learn how to use the gcloud command-line tool to manage connection profiles and migration jobs in Database Migration Service.\n\n\n[Learn more](/database-migration/docs/use-the-cloud-sdk) \nUse case \nUse cases\n\n### Best practices for homogeneous database migrations\n\n\nLearn tips for migrating data across compatible database engines.\n\n\n[Learn more](https://cloud.google.com/blog/products/databases/tips-for-migrating-across-compatible-database-engines) \nUse case \nUse cases\n\n### Prepare PostgreSQL for migration with Database Migration Service\n\n\nLearn how to setup your source PostgreSQL database so that Database Migration Service can migrate data from this database into Cloud SQL.\n\n\n[Learn more](https://cloud.google.com/blog/topics/developers-practitioners/preparing-postgresql-migration-database-migration-service) \nUse case \nUse cases\n\n### PostgreSQL migration with Database Migration Service\n\n\nLearn how to use Database Migration Service to migrate a PostgreSQL instance and its databases to Cloud SQL for PostgreSQL. Examine preparation steps and best practices for the whole migration process.\n\n\n[Learn more](https://cloud.google.com/architecture/postgresql-migration-with-database-migration-service) \nUse case \nUse cases\n\n### Database Migration Service connectivity: a technical introspective\n\n\nDo a deep-dive into the technical aspects of how Database Migration Service connects to both a source database and a destination database to migrate data from the source to the destination.\n\n\n[Learn more](https://cloud.google.com/blog/topics/developers-practitioners/database-migration-service-connectivity-technical-introspective) \nUse case \nUse cases\n\n### Close the gap: Migration completeness when using Database Migration Service\n\n\nLearn about what is and isn't included for Database Migration Service, and what you can do to ensure migration completeness when using Database Migration Service.\n\n\n[Learn more](https://cloud.google.com/blog/topics/developers-practitioners/closing-gap-migration-completeness-when-using-database-migration-service) \nUse case \nUse cases\n\n### Migrate MySQL data to Cloud SQL using Database Migration Service\n\n\nIn this training offering, you use hands-on labs to migrate MySQL data to Cloud SQL using Database Migration Service.\n\n\n[Learn more](https://www.cloudskillsboost.google/course_templates/629)"]]