您可以使用 Database Migration Service 将数据库迁移到 Google Cloud。
Database Migration Service 同时支持同构迁移(例如从 MySQL 迁移到 Cloud SQL for MySQL)和异构迁移(例如从 Oracle 迁移到 Cloud SQL for PostgreSQL)。
本页面列出了 Database Migration Service 在所有迁移方案中支持的所有源数据库和目标数据库的版本。您可以使用此信息来选择迁移的源数据库和目标数据库。
同构迁移支持的源数据库和目标数据库
选择同构迁移方案,查看迁移支持哪些来源数据库和目标数据库:
从 MySQL 迁移到 Cloud SQL for MySQL
支持的源数据库
Amazon RDS 5.6、5.7、8.0
自行管理的 MySQL(在本地或由您完全控制的任何云虚拟机上)5.5、5.6、5.7、8.0
Cloud SQL for MySQL 5.6、5.7、8.0、8.4
Amazon Aurora 5.6、5.7、8.0
Microsoft Azure Database for MySQL 5.7、8.0
对于 MySQL 8.0 源,Database Migration Service 还支持以下次要版本:8.0.18、8.0.26、8.0.27、8.0.28、8.0.30、8.0.31、8.0.32、8.0.33、8.0.34、8.0.35、8.0.36、8.0.37、8.0.39、8.0.40、8.0.41、8.0.42。
支持的目标数据库
Cloud SQL for MySQL 5.6 和 5.7
Cloud SQL for MySQL 8.0 包括以下次要版本:8.0.18、8.0.26、8.0.27、8.0.28、8.0.30、8.0.31、8.0.32、8.0.33、8.0.34、8.0.35、8.0.36、8.0.37、8.0.39、8.0.40、8.0.41、8.0.42。
Cloud SQL for MySQL 8.4 存在一定的限制。例如,MySQL 8.4 目标不支持使用物理备份文件的迁移。如需了解详情,请参阅已知限制。
您还可以使用 Database Migration Service 从早期版本的 SQL Server 迁移到 Cloud SQL 中支持的更高版本,前提是您遵循版本兼容性指南。如需了解详情,请参阅 Microsoft 文档中针对您的 SQL Server 版本支持的版本和版本升级。例如,请参阅支持的版本和版本升级 (SQL Server 2022)。
[[["易于理解","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 facilitates both homogeneous migrations (e.g., MySQL to Cloud SQL for MySQL) and heterogeneous migrations (e.g., Oracle to Cloud SQL for PostgreSQL).\u003c/p\u003e\n"],["\u003cp\u003eThe service supports a variety of source databases, including Amazon RDS, self-managed databases, and other cloud platforms like Azure, for migrations to Google Cloud's Cloud SQL, and AlloyDB.\u003c/p\u003e\n"],["\u003cp\u003eMySQL homogeneous migrations support multiple versions and minor versions of source databases such as Amazon RDS, Self-managed MySQL, Cloud SQL for MySQL, Amazon Aurora, and Microsoft Azure Database for MySQL.\u003c/p\u003e\n"],["\u003cp\u003ePostgreSQL homogeneous migrations support multiple versions of source databases such as Amazon RDS, Amazon Aurora, Self-managed PostgreSQL, Cloud SQL for PostgreSQL, and Microsoft Azure Database for PostgreSQL Flexible Server.\u003c/p\u003e\n"],["\u003cp\u003eHeterogeneous migrations are possible from Oracle databases (11g to 21c, including RAC) to Cloud SQL for PostgreSQL (versions 12 to 15) or AlloyDB for PostgreSQL (versions 14, 15), and from SQL Server to Cloud SQL for SQL Server (versions 2017 to 2022).\u003c/p\u003e\n"]]],[],null,["# Supported source and destination databases\n\nYou can use Database Migration Service to migrate your databases to Google Cloud.\nDatabase Migration Service supports both homogeneous migrations, such as MySQL to\nCloud SQL for MySQL, and heterogeneous migrations, such as Oracle to\nCloud SQL for PostgreSQL.\n\nThis page lists the versions of all source and destination databases that\nDatabase Migration Service supports in all migration scenarios. Use this information to\nchoose the source and destination databases for your migration.\n\nHomogeneous migrations supported source and destination databases\n-----------------------------------------------------------------\n\nSelect your homogeneous migration scenario to view which source and destination\ndatabases the migration supports: \n\n### MySQL to Cloud SQL for MySQL\n\n**Supported source databases**\n\n- Amazon RDS 5.6, 5.7, 8.0\n- Self-managed MySQL (on premises or on any cloud VM that you fully control) 5.5, 5.6, 5.7, 8.0\n- Cloud SQL for MySQL 5.6, 5.7, 8.0, 8.4\n- Amazon Aurora 5.6, 5.7, 8.0\n- Microsoft Azure Database for MySQL 5.7, 8.0\n\nFor MySQL 8.0 sources, Database Migration Service also supports the following minor versions:\n8.0.18, 8.0.26, 8.0.27, 8.0.28, 8.0.30, 8.0.31, 8.0.32, 8.0.33, 8.0.34, 8.0.35, 8.0.36, 8.0.37,\n8.0.39, 8.0.40, 8.0.41, 8.0.42.\n\n**Supported destination databases**\n\n- Cloud SQL for MySQL 5.6 and 5.7\n- Cloud SQL for MySQL 8.0 including the following minor versions: 8.0.18, 8.0.26, 8.0.27, 8.0.28, 8.0.30, 8.0.31, 8.0.32, 8.0.33, 8.0.34, 8.0.35, 8.0.36, 8.0.37, 8.0.39, 8.0.40, 8.0.41, 8.0.42.\n- Cloud SQL for MySQL 8.4 with certain limitations. For example, migrations that use physical backup files are not supported for MySQL 8.4 destinations. For more information, see [Known limitations](/database-migration/docs/mysql/known-limitations).\n\n| **Note:** Migrating from a later minor version to an earlier minor version is not recommended.\n\nFor more information, see [Migrate to Cloud SQL for MySQL](/database-migration/docs/mysql/migration-src-and-dest). \n\n### PostgreSQL to Cloud SQL for PostgreSQL\n\n**Supported source databases**\n\n- Amazon RDS 9.6.10+, 10.5+, 11.1+, 12, 13, 14, 15, 16, 17.\n- Amazon Aurora 10.11+, 11.6+, 12.4+, 13.3+, 14.6+, 15.2+, 16, 17.\n- Self-managed PostgreSQL (on premises or on any cloud VM that you fully control) 9.4, 9.5, 9.6, 10, 11, 12, 13, 14, 15, 16, 17.\n- Cloud SQL for PostgreSQL 9.6, 10, 11, 12, 13, 14, 15, 16, 17.\n- Microsoft Azure Database for PostgreSQL Flexible Server: 11+\n\n**Supported destination databases**\n\n- Cloud SQL for PostgreSQL 9.6, 10, 11, 12, 13, 14, 15, 16, 17.\n\nFor more information, see [Migrate to Cloud SQL for PostgreSQL](/database-migration/docs/postgres/migration-src-and-dest). \n\n### PostgreSQL to AlloyDB for PostgreSQL\n\n**Supported source databases**\n\n- Amazon RDS 9.6.10+, 10.5+, 11.1+, 12, 13, 14, 15, 16, 17\n- Amazon Aurora 10.11+, 11.6+, 12.4+, 13.3+, 14, 15, 16, 17\n- Self-managed PostgreSQL (on premises or on any cloud VM that you fully control) 9.4, 9.5, 9.6, 10, 11, 12, 13, 14, 15, 16, 17\n- Cloud SQL 9.6, 10, 11, 12, 13, 14, 15, 16, 17\n\n**Supported destination databases**\n\n- AlloyDB for PostgreSQL 14, 15, 16, 17\n\nFor more information, see\n[Migrate to AlloyDB for PostgreSQL](/database-migration/docs/postgresql-to-alloydb/migration-src-and-dest). \n\n### SQL Server to Cloud SQL for SQL Server\n\nThe following table lists all supported SQL Server source and destination\ndatabases:\n\n\nYou can also use Database Migration Service to migrate from earlier versions of\nSQL Server to later versions supported in Cloud SQL, as long\nas you follow the version compatibility guidelines. For more information,\nsee the supported version and edition upgrades for your SQL Server\nversion in Microsoft documentation. For example, see\n[Supported version and edition upgrades (SQL Server 2022)](https://learn.microsoft.com/en-us/sql/database-engine/install-windows/supported-version-and-edition-upgrades-2022?view=sql-server-ver16#upgrades-from-earlier-versions-to-sql-server-2022).\n\nFor more information, see [Migrate to Cloud SQL for SQL Server](/database-migration/docs/sqlserver/scenario-overview).\n\nHeterogeneous migrations supported source and destination databases\n-------------------------------------------------------------------\n\nSelect your heterogeneous migration scenario to view which source and destination\ndatabases the migration supports: \n\n### Oracle to Cloud SQL for PostgreSQL\n\n**Supported source and destination databases**\n\nDatabase Migration Service supports the following Oracle databases as migration sources:\n\n- Amazon RDS for Oracle\n- Self-hosted deployments, including:\n - Oracle Single Instance Database Deployment\n - Oracle Exadata\n - Oracle Active Data Guard\n - Oracle Real Application Clusters (RAC)\n\nFull support also depends on your source Oracle version.\nThe following table lists all supported versions for heterogeneous Oracle migrations:\n\n**Unsupported source databases**\n\nDatabase Migration Service doesn't support migrating from Oracle Autonomous Database.\n\nFor more information, see [Migrate from Oracle to Cloud SQL for PostgreSQL](/database-migration/docs/oracle-to-postgresql/scenario-overview). \n\n### Oracle to AlloyDB for PostgreSQL\n\n**Supported source and destination databases**\n\nDatabase Migration Service supports the following Oracle databases as migration sources:\n\n- Amazon RDS for Oracle\n- Self-hosted deployments, including:\n - Oracle Single Instance Database Deployment\n - Oracle Exadata\n - Oracle Active Data Guard\n - Oracle Real Application Clusters (RAC)\n\nFull support also depends on your source Oracle version.\nThe following table lists all supported versions for heterogeneous Oracle migrations:\n\n**Unsupported source databases**\n\nDatabase Migration Service doesn't support migrating from Oracle Autonomous Database.\n\nFor more information, see [Migrate from Oracle to AlloyDB for PostgreSQL](/database-migration/docs/oracle-to-alloydb/scenario-overview). \n\n### SQL Server to Cloud SQL for PostgreSQL\n\n**Supported source and destination databases**\n\nThe following table lists all supported SQL Server source and destination databases:\n\n**Unsupported source databases**\n\nDatabase Migration Service doesn't support migrating from the following SQL Server versions:\n\n- SQL Server Standard edition versions from 2008 to 2014\n- SQL Server Express\n- SQL Server Web\n\nFor more information, see\n[Migrate from SQL Server to Cloud SQL for PostgreSQL](/database-migration/docs/sqlserver-to-csql-pgsql/scenario-overview). \n\n### SQL Server to AlloyDB for PostgreSQL\n\n**Supported source and destination databases**\n\nThe following table lists all supported SQL Server source and destination databases:\n\n**Unsupported source databases**\n\nDatabase Migration Service doesn't support migrating from the following SQL Server versions:\n\n- SQL Server Standard edition versions from 2008 to 2014\n- SQL Server Express\n- SQL Server Web\n\nFor more information, see [Migrate from SQL Server to AlloyDB for PostgreSQL](/database-migration/docs/sqlserver-to-alloydb/scenario-overview)."]]