文件转换 - .mwb到.sql文件
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.
我有一个.mwb格式的数据库。我想在eclipse中使用它,所以我需要将其转换为.sql格式。如果有人知道如何使用任何工具做到这一点。我认为我的sql工作台可以做到这一点,但不知道如何做到这一点。
2 个解决方案
#1
13
In the menu click "Database" and then "Forward engineering" (shortcut CTRL+G).
在菜单中单击“数据库”,然后单击“正向工程”(快捷键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:
您的.mwb文件是专有格式,它还包含Workbench中图形表示的信息。生成的.sql文件是MySQL服务器需要解释的脚本。要创建通过命令行设计的数据库,请在您选择的控制台中写下这样的内容:
mysql -u yourUser -p yourDatabase < yourFile.sql
You can omit "yourDatabase" when you create it with your script.
使用脚本创建“yourDatabase”时可以省略它。
更多相关文章
- Java使用Velocity模板发送HTML格式邮件并解决中文乱码问题
- android studio 解析Excel数据格式导入poi-3.17.jar时的一系列报
- 【Android实战】----Android Retrofit2.1.0设置编码格式GBK
- js实现把整数秒转化为"hh:mm:ss"的时间格式.
- java开发编译器:中间语言格式
- BufferedImage到InputStream - 格式不同
- 如何使用Thymleaf做到这一点?
- execl中设置的格式无法实现
- 自定义MapReduce输入格式 - 找不到构造函数