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”时可以省略它。

更多相关文章

  1. Java使用Velocity模板发送HTML格式邮件并解决中文乱码问题
  2. android studio 解析Excel数据格式导入poi-3.17.jar时的一系列报
  3. 【Android实战】----Android Retrofit2.1.0设置编码格式GBK
  4. js实现把整数秒转化为"hh:mm:ss"的时间格式.
  5. java开发编译器:中间语言格式
  6. BufferedImage到InputStream - 格式不同
  7. 如何使用Thymleaf做到这一点?
  8. execl中设置的格式无法实现
  9. 自定义MapReduce输入格式 - 找不到构造函数

随机推荐

  1. PHP PHP_EOL 换行符
  2. PHP 获取不带命名空间的类名
  3. php全称是什么
  4. php 的生命周期
  5. PHP保留类及特殊类
  6. php header是什么意思
  7. php隐藏后缀(.PHP)的方法过程
  8. PHP 引用详解 - 踩坑与妙用
  9. php如何理解面向对象
  10. PHP 源码 — is_array 函数源码分析