This page describes how you can move the location of your primary instance
to an external, self-managed server with a minimum of downtime.
Migrate data to an external server
To migrate the primary copy of your data from Cloud SQL to an external
server with the least downtime, you set up your external server as an
external replica, then demote the Cloud SQL instance to become the replica
of the external server.
This procedure requires you to complete the following high-level steps:
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.
Follow the instructions provided in
Demoting the primary instance of an external replica to demote the
Cloud SQL primary instance. Demoting the primary instance also promotes
the external server, making it the new primary instance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-26 UTC."],[],[]]