mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Add tenancy support to the dump service
This commit is contained in:
parent
6409e02aed
commit
b6b008e74a
@ -128,12 +128,23 @@ std::string DatabaseDumpService::GetMySQLVersion()
|
|||||||
std::string DatabaseDumpService::GetBaseMySQLDumpCommand()
|
std::string DatabaseDumpService::GetBaseMySQLDumpCommand()
|
||||||
{
|
{
|
||||||
auto config = EQEmuConfig::get();
|
auto config = EQEmuConfig::get();
|
||||||
|
if (IsDumpContentTables() && !config->ContentDbHost.empty()) {
|
||||||
|
return fmt::format(
|
||||||
|
"mysqldump -u {} -p{} -h {} --port={} {}",
|
||||||
|
config->ContentDbUsername,
|
||||||
|
config->ContentDbPassword,
|
||||||
|
config->ContentDbHost,
|
||||||
|
config->ContentDbPort,
|
||||||
|
config->ContentDbName
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
return fmt::format(
|
return fmt::format(
|
||||||
"mysqldump -u {} -p{} -h {} {}",
|
"mysqldump -u {} -p{} -h {} --port={} {}",
|
||||||
config->DatabaseUsername,
|
config->DatabaseUsername,
|
||||||
config->DatabasePassword,
|
config->DatabasePassword,
|
||||||
config->DatabaseHost,
|
config->DatabaseHost,
|
||||||
|
config->DatabasePort,
|
||||||
config->DatabaseDB
|
config->DatabaseDB
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user