Bug #104936 Error on Data Export when Include Create Schema selected
Submitted: 14 Sep 2021 8:33 Modified: 15 Sep 2021 6:42
Reporter: John King Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S2 (Serious)
Version:8.0 OS:Windows
Assigned to: CPU Architecture:Any
Tags: Data Export

[14 Sep 2021 8:33] John King
Description:
Data Export results in the following message:

10:22:49 Dumping test (all tables)
Error executing task write() argument must be str, not bytes
10:22:50 Export of b'D:\\dump.sql' has finished

How to repeat:
create a schema test
From Administration select Data Export
Select Schema test, Exprot to Self-COntained File and specify a destination, enable Include Create Schema 

Suggested fix:
Teh
[14 Sep 2021 8:34] John King
wb.log

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

[15 Sep 2021 6:42] MySQL Verification Team
Hello John King,

Thank you for the bug report.
Imho this is duplicate of Bug #102320, please see Bug #102320.

Regards,
Ashwini Patil