Bug #104947 Unable to run SQL scripts from file>run script .
Submitted: 15 Sep 2021 7:04 Modified: 15 Sep 2021 7:18
Reporter: Krishna Bisen Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S6 (Debug Builds)
Version:8.0.26 OS:Windows (Microsoft Windows 10 Home Single Language)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[15 Sep 2021 7:04] Krishna Bisen
Description:
----[For better reports, please attach the log file after submitting. You can find it in C:\Users\Prometheus\AppData\Roaming\MySQL\Workbench\log\wb.log]

When we try to run a SQL script from file> run script, we get this error "[WinError 32] The process cannot access the file because it is being used by another process". This was not the issue is solved by installing the previous version for instance 8.0.16 works.

How to repeat:
save a SQL file, for example:
```CREATE SCHEMA mavenfuzzy;
USE mavenfuzzy;
CREATE TABLE movie_detail (movie_id INT);```
save it as .sql file and run it from SQL workbench > File > Run SQL Script...

Suggested fix:
The issue is not present in version 8.0.16 don't know about versions between 8.0.17 to 8.0.24, surely doesn't work in 8.0.25 or 8.0.26 either.
[15 Sep 2021 7:06] Krishna Bisen
Log File

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

[15 Sep 2021 7:09] Krishna Bisen
changed CPU architecture from x86 to Any
[15 Sep 2021 7:18] MySQL Verification Team
Hello Krishna Bisen,

Thank you for the report and feedback.
Imho this is duplicate of Bug #104841, please see Bug #104841.
Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead. Thank you for your interest in MySQL.

regards,
Umesh