[[["容易理解","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 (世界標準時間)。"],[],[],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."]]