[[["易于理解","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-04。"],[],[],null,["# Migrate data from Cloud SQL to an external server\n\n\u003cbr /\u003e\n\nMySQL \\| PostgreSQL \\| SQL Server\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis page describes how you can move the location of your primary instance\nto an external, self-managed server with a minimum of downtime.\n\nMigrate data to an external server\n----------------------------------\n\nTo migrate the primary copy of your data from Cloud SQL to an external\nserver with the least downtime, you set up your external server as an\nexternal replica, then demote the Cloud SQL instance to become the replica\nof the external server.\n\nThis procedure requires you to complete the following high-level steps:\n\n1. Create an external replica for your Cloud SQL instance, following the steps in [Configuring External Replicas](/sql/docs/mysql/replication/configure-external-replica).\n2. When the replica is fully synchronized with the Cloud SQL primary, take your applications offline, and update the applications to point to the external server.\n3. Follow the instructions provided in [Demoting the primary instance of an external replica](/sql/docs/replication/configure-external-replica#demote) to demote the Cloud SQL primary instance. Demoting the primary instance also promotes the external server, making it the new primary instance."]]