Bug #95396 Error executing task dump_to_folder() takes exactly 4 arguments (3 given)
Submitted: 16 May 2019 21:36 Modified: 19 May 2019 19:27
Reporter: Jiri Nejedly Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:8.0.16 OS:Windows (Microsoft Windows 10 Pro)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[16 May 2019 21:36] Jiri Nejedly
Description:
----[For better reports, please attach the log file after submitting. You can find it in C:\Users\JN\AppData\Roaming\MySQL\Workbench\log\wb.log]

I am exporting all my database schema (called musicdb). It has 2 stored procedures, 5 functions and sveral triggers on tables. I amd exporting to folder. Checkboxes 'Dump stored procedures and functions' and 'Dump triggers are set'. Export of tables seeokk, but last lines of export log are:

23:22:28 Dumping musicdb views and/or routines and/or events
Error executing task dump_to_folder() takes exactly 4 arguments (3 given)
23:22:28 Export of E:\Export\49 has finished

How to repeat:
Every time I'm doing data export.
[16 May 2019 21:39] Jiri Nejedly
log

Attachment: wb.log (application/octet-stream, text), 6.07 KiB.

[17 May 2019 0:29] MySQL Verification Team
Thank you for the bug report. Windows 7 isn't an supported OS:
https://www.mysql.com/support/supportedplatforms/workbench.html
Anyway if you could provide a sql script file so I could create the database and test on Windows 10 pro would be nice.
[17 May 2019 20:31] Jiri Nejedly
Just upgraded to Windows 10 Pro, the same bug.
Simple schema, one table with one column, one empty procedure:

CREATE SCHEMA `myschema` ;
CREATE TABLE `myschema`.`mytable` (
  `idmytable` INT NOT NULL,
  PRIMARY KEY (`idmytable`));
USE `myschema`;
DROP procedure IF EXISTS `myprocedure`;

DELIMITER $$
USE `myschema`$$
CREATE PROCEDURE `myprocedure` ()
BEGIN
--  do nothing
END$$

DELIMITER ;

Result of export:

22:24:53 Dumping myschema (mytable)
Running: mysqldump.exe --defaults-file="c:\users\jn\appdata\local\temp\tmpn7fxrw.cnf"  --user=root --host=localhost --protocol=tcp --port=3306 --default-character-set=utf8 "myschema" "mytable"
22:24:54 Dumping myschema views and/or routines and/or events
Error executing task dump_to_folder() takes exactly 4 arguments (3 given)
22:24:54 Export of E:\Export\49 (3) has finished

JN
[18 May 2019 2:16] MySQL Verification Team
Export Data

Attachment: 95396.png (image/png, text), 200.51 KiB.

[18 May 2019 2:17] MySQL Verification Team
Thank you for the feedback. I couldn't repeat against 8.0.16 server (see screenshot).
[19 May 2019 12:07] Jiri Nejedly
You obviously do not have the 'Dump Stored Procedures and Functions' checkbox set ! In your case I don't see any 'Dumping myschema views and/or routines and/or events' message.

Even if I unselect the table to export and leave the above checkbox selected alone, I get:

14:00:20 Dumping myschema views and/or routines and/or events
Error executing task dump_to_folder() takes exactly 4 arguments (3 given)
14:00:20 Export of G:\E\Export\49 (4) has finished
[19 May 2019 19:27] MySQL Verification Team
Thank you for the feedback.
[7 Jun 2019 0:23] Curtis DeHart
I can confirm it exists on Windows 10 pro 1903 (build: 18362.145). Workbench version: 8.0.16
When dumping structure and data with "Dump Stored Procedures and Functions" checked, "Dump Events" not checked, "Dump Triggers" checked, "Export to Dump Project Folder", and "Include Create Schema" checked.
Example Log:
17:04:42 Dumping allinfo (blacklist)
Running: "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqldump.exe" --defaults-file="c:\users\<username>\appdata\local\temp\tmpvfgxpu.cnf"  --host=127.0.0.1 --protocol=tcp --user=root --flush-logs=TRUE --port=3306 --default-character-set=utf8 "allinfo" "blacklist"
17:04:42 Dumping allinfo views and/or routines and/or events
Error executing task dump_to_folder() takes exactly 4 arguments (3 given)
17:04:42 Export of Z:\TestingMySQLDbDumpIssue has finished
[11 Jun 2019 21:53] ARNAUD DUPUIS
saame issue with windows 8.1
having updated a database from 5.6.
So far all works but unsure restore/backup are working.
Des anyone know?
[11 Oct 2020 23:28] Michael Lynott
wb1.log showing no logged error

Attachment: wb.1.log (application/octet-stream, text), 52.51 KiB.

[11 Oct 2020 23:29] Michael Lynott
Feedback from dump of c database showing error text

Attachment: Output from dump of c database showing error.txt (text/plain), 1.62 KiB.

[11 Oct 2020 23:34] Michael Lynott
Error message displayed also on MySQL 8.0.16. Log file (showing no errors) and dump of error message text (file) attached. Windows Home 19041.508.