Does the name of your source database contain any special characters? Like in my case?
I got the same error as you, but fixed it by changing the name of the database to something simple, like mydatabase
.
E.g. by using Microsoft SQL Server Management Studio. Right-click the database -> click "Rename", type the new name, and hit enter.
For some reason I had to do it by re-attaching the database, and specify the new name in the Attach As field inside the Attach Databases dialogue.
Looking at the log from my case, I suspect the problem to be caused by MySQL Workbench calling wbcopytables.exe with the argument --table {YOUR_DATABASE_NAME}
, which in my case it used --table {C:\DATABASES\db.mdf}
. It seems to be copying the source database name directly into the terminal.