file conversion- .mwb to .sql file

后端 未结 2 1670
伪装坚强ぢ
伪装坚强ぢ 2021-02-20 02:31

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

相关标签:
2条回答
  • 2021-02-20 02:54

    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.

    0 讨论(0)
  • 2021-02-20 03:00

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

    https://github.com/tomoemon/mwb2sql

    0 讨论(0)
提交回复
热议问题