使用带有 INSERT 语句的 MySQL Workbench 导出数据库 [英] Export DataBase with MySQL Workbench with INSERT statements

查看:42
本文介绍了使用带有 INSERT 语句的 MySQL Workbench 导出数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试导出我在 MySQL Workbench 上的数据库,但在 .sql 文件上生成 INSERT 语句时遇到了麻烦.

I am trying to export the DataBase i have at MySQL Workbench but I am having troubles to generate the INSERT statements on the .sql file.

为了导出数据,我对要导出的数据库进行了逆向工程.然后,我去

I order to export the data, I do the reverse engineering for the database i want to export. Then, i go to

文件/导出/转发工程师 SQL CREATE 脚本

File / Export/ Forward Engineer SQL CREATE Script

进入后,我选择选项为表生成 INSERT 语句.

结果只生成创建表的代码.

The result only generates the code for the create tables.

有没有办法为数据创建插入语句?

Is there any way to create the insert statements for the data?

谢谢

推荐答案

对于旧版本:

打开 MySQL 工作台 > 主页 > 管理导入/导出(右下)/选择所需的数据库 > 高级导出选项选项卡 > 完成插入 [选中] > 开始导出.

Open MySQL Workbench > Home > Manage Import / Export (Right bottom) / Select Required DB > Advance Exports Options Tab >Complete Insert [Checked] > Start Export.

对于 6.1 及更高版本,感谢 ryandlf:

点击管理选项卡(模式旁边)并选择数据导出.

Click the management tab (beside schemas) and choose Data Export.

这篇关于使用带有 INSERT 语句的 MySQL Workbench 导出数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆