Running: /Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump --defaults-file ="/var/folders/tmpn6fxeU/extraparams.cnf" --set-gtid-purged=OFF --delayed-insert=FALSE --host=xxx.xxx.xxx.xxx --protocol=tcp --user=root --port=3306 --default-character-set=utf8 --skip-triggers "matchbox_test"mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'Operation failed with exitcode 713:19:01 Export of /Users/jason/Documents/Dump20151116.sql has finished with 1 errors
原因
我们看错误报告显示这个变量 'delayed-insert=FALSE' 不被识别,workbench默认配置里会开启 这个变量并且默认值是false。如果我们用不到这个变量可以更改配置文件,注释掉这个变量来解决
解决步骤
找到配置文件目录:
__InstallPath__/modules
打开python格式的输出配置文件:
wb_admin_export_options.py
找到所在行:
"delayed-insert":["Write INSERT DELAYED statements rather than ...
在行开头插入
#
号注释改行保存文件,重启Workbench
配置文件所在位置
windows
Mac
Ubuntu
http://stackoverflow.com/questions/20128223/export-data-from-mysql-workbench-6-0