로딩
요청 처리 중입니다...

MySQL DB 스키마 Diff 생성

 MySQL DB 스키마 Diff 생성

MySQL diff Oracle에서 제공하는 MySQL Utilities를 받으시면 http://dev.mysql.com/downloads/utilities/ scripts 폴더에 mysqldiff가 있습니다. python으로 작성된 스크립트이고 사용법은 아래와 같습니다. mysqldiff --server1=user:pass@host1 --server2=user:pass@host2 db1:db2 --difftype=sql 결과는 아래와 같이 sql문을 출력해주는데, 이 sql을 db1에서 실행하면 db2와 동일한 스키마가 됩니다. # server1 on host1: ... connected. # server2 on host2: ... connected. # Comparing db1.table3 to db2.table3 [FAIL] # Transformation statements: ALTER TABLE db1.table3 DROP COLUMN notes; Compare failed....