Skip to content

BackupFile is being used by another process #116

@hubs984

Description

@hubs984

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions