Bug #73137 MySQL Workbench fails to export with exit code 7
Submitted: 27 Jun 2014 22:27 Modified: 30 Jun 2014 10:39
Reporter: Matthew Hale Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:6.1.7 OS:MacOS
Assigned to: CPU Architecture:Any

[27 Jun 2014 22:27] Matthew Hale
Description:
When trying to export a schema from MySQL 5.7.4, Workbench returns the following:

--

15:15:48 Dumping ucsdnews (all tables)
Running: /usr/local/mysql/bin/mysqldump --defaults-file="/var/folders/xr/mwj65wr51hd52s8bnmrhpkr80000gp/T/tmpiKA0uN/extraparams.cnf"  --max_allowed_packet=1G --delayed-insert=FALSE --host=localhost --user=root --port=3306 --default-character-set=utf8 "ucsdnews"
mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'

Operation failed with exitcode 7
15:15:49 Export of /Users/matthew/Desktop/test-dump.sql has finished with 1 errors

--

The error occurs when the mysqldump location is configured to point to the version of mysqldump in MySQL 5.7.4.

When the mysqldump location is left as the default, the dump will continue, but I am warned about the version mismatch:

--

mysqldump Version Mismatch

/Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump is version 5.6.17, but the MySQL Server to be dumped has version 5.7.4-m14.
Because the version of mysqldump is older than the server, some features may not be backed up properly.
It is recommended you upgrade your local MySQL client programs, including mysqldump to a version equal to or newer than that of the target server.
The path to the dump tool must then be set in Preferences -> Administrator -> Path to mysqldump Tool:

--

I have tried multiple versions of Workbench (6.0.9, 6.1.6 and 6.1.7), all seem to behave identically.

How to repeat:
Export to a Dump Project folder or to a Self-Contained file

Suggested fix:
Remove the delayed-insert parameter if it is no longer supported in databases 5.6 and above.
[30 Jun 2014 10:39] MySQL Verification Team
Thank you for the report.
Duplicate of Bug #72312

Thanks,
Umesh
[29 Oct 2015 3:02] Brad Flood
Still an existing issue for me on OSX 10.11 running the latest available MySQL Workbench 6.3.5
[29 Oct 2015 3:03] Brad Flood
See temporary solution here:
http://stackoverflow.com/questions/20128223/export-data-from-mysql-workbench-6-0