Memigrasikan data dari Cloud SQL ke server eksternal
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
MySQL | PostgreSQL | SQL Server
Halaman ini menjelaskan cara memindahkan lokasi instance utama
ke server eksternal yang dikelola sendiri dengan periode nonaktif minimum.
Memigrasikan data ke server eksternal
Untuk memigrasikan salinan utama data Anda dari Cloud SQL ke server eksternal
dengan periode nonaktif yang paling rendah, siapkan server eksternal Anda sebagai
replika eksternal, lalu demosikan instance Cloud SQL menjadi replika
dari server eksternal.
Prosedur ini mengharuskan Anda menyelesaikan langkah-langkah tingkat tinggi berikut:
Setelah replika disinkronkan sepenuhnya dengan server utama Cloud SQL,
nonaktifkan aplikasi Anda, lalu update aplikasi agar mengarah ke
server eksternal.
Ikuti petunjuk yang diberikan dalam
Mendemosikan instance utama replika eksternal untuk mendemosikan
instance utama Cloud SQL. Mendemosikan instance utama juga akan mempromosikan
server eksternal, sehingga menjadikannya instance utama baru.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],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."]]