MySqlBackup.Net icon indicating copy to clipboard operation
MySqlBackup.Net copied to clipboard

BackupFile is being used by another process

Open hubs984 opened this issue 10 months ago • 0 comments
trafficstars

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)

hubs984 avatar Jan 13 '25 02:01 hubs984