mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
Fix issue where sometimes under certain circumstances when issuing a database dump with large data over a network with extended inserts we hit a buffer threshold that kills a MySQL dump with Error 2013
This commit is contained in:
parent
fb5fc935e7
commit
c192590af6
@ -300,8 +300,7 @@ void DatabaseDumpService::Dump()
|
|||||||
config->DatabaseUsername
|
config->DatabaseUsername
|
||||||
);
|
);
|
||||||
|
|
||||||
std::string options = "--allow-keywords --extended-insert";
|
std::string options = "--allow-keywords --extended-insert --max-allowed-packet=1G --net-buffer-length=32704";
|
||||||
|
|
||||||
if (IsDumpWithNoData()) {
|
if (IsDumpWithNoData()) {
|
||||||
options += " --no-data";
|
options += " --no-data";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user