file conversion- .mwb to .sql file

♀尐吖头ヾ 提交于 2019-12-05 18:09:42

问题


I have a database in .mwb format. I want to use it in eclipse so i need to convert it into .sql format. If anyone know how to do that by using any tool. I think My sql workbench can do that, but don't know how to do that.


回答1:


In the menu click "Database" and then "Forward engineering" (shortcut CTRL+G).

UPDATE:

Your .mwb file is a proprietary format, which also holds information of the graphical representation in Workbench. Your generated .sql file is a script, which your MySQL server needs to interpret. To create the database you designed via command line write something like this in the console of your choice:

mysql -u yourUser -p yourDatabase < yourFile.sql

You can omit "yourDatabase" when you create it with your script.




回答2:


Forward Engineering on my debian installation of workbench did not work. This worked for me.Could convert .mwb file to .sql file.

https://github.com/tomoemon/mwb2sql



来源:https://stackoverflow.com/questions/10532208/file-conversion-mwb-to-sql-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!