Selama migrasi database, database tujuan harus terhubung
ke database sumber. Database Migration Service menyediakan beberapa cara untuk mengonfigurasi konektivitas ini. Metode konektivitas yang Anda pilih bergantung pada jenis
database sumber, dan apakah database tersebut berada di lokal, di Google Cloud, atau di penyedia
cloud lain.
Anda dapat mengonfigurasi metode konektivitas berikut:
Tunnel SSH terbalik menggunakan VM yang dihosting di cloud: Pilih metode ini jika Anda
ingin menggunakan konektivitas yang aman, dan saat Anda tidak memiliki jaringan
virtual private cloud (VPC) di Google Cloud tempat Anda dapat menjangkau database sumber.
Konektivitas pribadi: Pilih metode ini jika Anda ingin database tujuan terhubung ke IP pribadi sumber Anda. Ada dua jenis
konektivitas pribadi yang tersedia:
Antarmuka Private Service Connect:
Metode konektivitas ini memungkinkan database tujuan Anda memulai
koneksi ke IP pribadi database sumber Anda
tanpa menggunakan kuota peering. Sebagai gantinya, antarmuka Private Service Connect menggunakan lampiran jaringan yang Anda buat di VPC Anda.
Peering VPC: Metode ini mengharuskan Anda memiliki jaringan VPC di
Google Cloud yang dapat Anda gunakan untuk menjangkau database sumber.
Gunakan peering VPC jika Anda telah menyiapkan koneksi
VPN
atau Cloud Interconnect di Google Cloud.
[[["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-05 UTC."],[[["\u003cp\u003eDatabase Migration Service requires the destination Cloud SQL database to connect to the source database.\u003c/p\u003e\n"],["\u003cp\u003eThe chosen connectivity method depends on the source database's type and location (on-premises, Google Cloud, or another cloud provider).\u003c/p\u003e\n"],["\u003cp\u003eConnectivity options include IP allowlists for public access, reverse SSH tunnels for secure access without a VPC, and VPC peering for private access with a VPC.\u003c/p\u003e\n"],["\u003cp\u003eVPC peering is recommended when a VPN or Cloud Interconnect connection is already established in Google Cloud.\u003c/p\u003e\n"]]],[],null,["# Configure connectivity\n\n\u003cbr /\u003e\n\nMySQL \\| [PostgreSQL](/database-migration/docs/postgres/configure-connectivity \"View this page for the PostgreSQL version of Database Migration Service.\") \\| [PostgreSQL to AlloyDB](/database-migration/docs/postgresql-to-alloydb/configure-connectivity \"View this page for the PostgreSQL to AlloyDB version of Database Migration Service.\")\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nDuring database migration, the destination database needs to connect\nto the source database. Database Migration Service provides several ways to configure\nthis connectivity. The connectivity method you choose depends on the type of\nsource database, and whether it resides on-premises, in Google Cloud, or in another\ncloud provider.\n\nYou can configure the following connectivity methods:\n\n- [IP allowlists](/database-migration/docs/mysql/configure-connectivity-ip-allowlists): Choose this method if you want to use public connectivity.\n- [Reverse SSH tunnel using a cloud-hosted VM](/database-migration/docs/mysql/configure-connectivity-reverse-ssh-tunnel): Choose this method if you want to use secure connectivity, and when you don't have a virtual private cloud (VPC) network in Google Cloud from which you can reach the source database.\n- Private connectivity: Choose this method if you want the destination database to connect to the private IP of your source. There are two types of private connectivity available:\n - [Private Service Connect interfaces](/database-migration/docs/mysql/configure-connectivity-vpc-peering#psc-interfaces): This connectivity method lets your destination database initiate connections to the private IP of your source database without consuming peering quota. Instead, Private Service Connect interfaces use network attachments you create in your VPC.\n - [VPC peering](/database-migration/docs/mysql/configure-connectivity-vpc-peering#vpc-peering): This method requires that you have a VPC network in Google Cloud from which you can reach the source database. Use VPC peering if you have a [VPN](/database-migration/docs/mysql/configure-connectivity-vpns) or Cloud Interconnect connection set up in Google Cloud.\n\nWhat's next\n-----------\n\n- Learn more about [private services access](/vpc/docs/private-services-access).\n- Learn more about [Private Service Connect interfaces](/vpc/docs/about-private-service-connect-interfaces).\n- Learn more about [using VPC peering](/vpc/docs/using-vpc-peering)."]]