postgres 프롬프트에서 \list를 입력하여 데이터베이스를 나열하고 소스 데이터베이스 인스턴스가 표시되는지 확인합니다.
postgres 프롬프트에서 \connect SOURCE_DB_NAME를 입력하고 메시지가 표시되면 비밀번호를 입력하여 데이터베이스 인스턴스에 연결하고 인스턴스와 연결된 테이블을 확인합니다. 프롬프트 이름이 postgres에서 SOURCE_DB_NAME으로 변경됩니다.
SOURCE_DB_NAME 프롬프트에서 \dt를 입력하여 이 인스턴스의 테이블을 확인합니다.
SOURCE_DB_NAME 프롬프트에서 이 사용자에게 인스턴스의 테이블에 있는 데이터에 액세스할 수 있는 권한을 부여하려면 GRANT cloudsqlexternalsync to USER;를 입력합니다. 또한 USER를 대상 데이터베이스 인스턴스에 연결하는 데 사용한 사용자 이름으로 바꿉니다.
SOURCE_DB_NAME 프롬프트에서 SELECT * from TABLE_NAME;을 입력하여 소스 데이터베이스 인스턴스의 테이블에서 복제된 정보를 확인합니다.
테이블에 올바른 정보가 표시되는지 확인합니다.
기본 키, 외래 키, 색인과 같은 제약조건이 대상 Cloud SQL 데이터베이스 인스턴스로 올바르게 마이그레이션되었는지 확인합니다.
확인한 모든 항목이 예상대로 표시되면 Database Migration Service에서 데이터를 올바르게 마이그레이션한 것입니다.
[[["이해하기 쉬움","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-04-09(UTC)"],[[["This guide helps verify that a database migration job has correctly transferred data from a source database to a destination Cloud SQL instance."],["The basic verification process includes confirming the existence of the migrated database instance and its tables in the Cloud SQL instance."],["You can also run SQL commands through the Cloud Shell to check the row counts or exact contents of migrated tables."],["To check data integrity, one must grant specific user permissions to access table data via the cloud shell."],["Checking constraints such as primary keys, foreign keys, and indexes should also be verified in the destination database."]]],[]]