mysql怎么另存为,是否可以将MySQL Workbench文件另存为纯XML?

DB Designer had a lot of bugs but one outstanding feature was that database models were saved in plain XML by default.

This allowed a user to diff file versions via SVN or Beyond Compare, easily finding any changes made to the database.

Unfortunately, DB Designer's succsssor, MySQL Workbench, stores files in a proprietary MVW file format, which is unreadable.

Is it possible to force MySQL Workbench to save as XML?

解决方案

No, the current version (5.2.10 beta) does not support that.

However, the file format is not proprietary - its a simple zip archive. It contains a single XML document which is the complete database model. I wrote this SO question a couple of months ago with the same goal as you seem to have. I wanted to be able to do svn diff model.mwb

The answer I got there helped me write a small script which unzipped the file before passing it to the diff tool. It worked decently and if you're interested I can post it somewhere.

I also very recently started a thread on the Workbench forum about this issue. Hopefully someone on the development team can provide some more input on this.

EDIT: it is now being tracked by MySQL Bug #51203 with a target of 6.0.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值