Compare structures of two databases?

前端 未结 17 1709
我在风中等你
我在风中等你 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:51

    For mysql on Linux, it is possible via phpmyadmin to export the databases without 'data' and only structure.

    Scrolling through the export options for the entire database, just deselect 'data' and set the output to text. Export both databases you wish to compare.

    Then in file compare in your preferred program / site, compare the two text file outputs of the databases. Synchronization is still manual in this solution, but this is effective for comparing and finding the structural differences.

提交回复
热议问题