Compare structures of two databases?

前端 未结 17 1530
我在风中等你
我在风中等你 2021-02-01 04:30

I wanted to ask whether it is possible to compare the complete database structure of two huge databases. We have two databases, the one is a development database, the other a p

17条回答
  •  再見小時候
    2021-02-01 04:58

    You can use the command line:

    mysqldump --skip-comments --skip-extended-insert -d --no-data -u root -p dbName1>file1.sql
    mysqldump --skip-comments --skip-extended-insert -d --no-data -u root -p dbName2>file2.sql
    diff file1.sql file2.sql
    

提交回复
热议问题