Bug #104119 Error running sql script file
Submitted: 26 Jun 2021 6:16 Modified: 27 Jun 2021 19:33
Reporter: Kushagra Kinjawadekar Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: DML Severity:S3 (Non-critical)
Version:8.0 OS:Windows (Windows 10)
Assigned to: CPU Architecture:Any
Tags: error, msql, script, workbench

[26 Jun 2021 6:16] Kushagra Kinjawadekar
Description:
Whenever I tried running a sql script it gives the following error.

"[WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Anon\AppData\Local\Temp"

How to repeat:
I deleted the file, but it replaces the deleted file with another one.

Suggested fix:
Reinstalling mysql - Not working
Deleting or terminating process - not working
[27 Jun 2021 19:33] MySQL Verification Team
Thank you for the bug report. I couldn't repeat on Windows 10 Pro and MySQL Server 8.0.25. Check permission and if another application is handling the file.