Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackupFile is being used by another process #116

Open
hubs984 opened this issue Jan 13, 2025 · 0 comments
Open

BackupFile is being used by another process #116

hubs984 opened this issue Jan 13, 2025 · 0 comments

Comments

@hubs984
Copy link

hubs984 commented Jan 13, 2025

when i was backup database (database is very big ,about 13G ),it sometimes happen the following error,
when i set the ExportProgressChanged interval from 1min to 5min, This phenomenon has decreased,but sometimes also happen
do you know this reason?
tips: when the database is small,it never happens.

error stack trace:
System.IO.IOException: The process cannot access the file 'E:\MybackupPath xxxxxxxxxxxx\Mysql_useless_20250107184401.sql'
because it is being used by another process. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)

at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)

at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize) at
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) at MySql.Data.MySqlClient.MySqlBackup.ExportToFile(String filePath)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant