fix(CORE): revert to mysql -p argument.
A different and non deprecated approach should be used.
This commit is contained in:
parent
a8d41010f5
commit
563596bc69
1 changed files with 3 additions and 2 deletions
|
|
@ -447,6 +447,9 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
|
|||
args.emplace_back("-h" + host);
|
||||
args.emplace_back("-u" + user);
|
||||
|
||||
if (!password.empty())
|
||||
args.emplace_back("-p" + password);
|
||||
|
||||
// Check if we want to connect through ip or socket (Unix only)
|
||||
#ifdef _WIN32
|
||||
|
||||
|
|
@ -498,8 +501,6 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
|
|||
|
||||
auto env = boost::process::environment();
|
||||
|
||||
if (!password.empty())
|
||||
env["MYSQL_PWD"]=password;
|
||||
|
||||
// Invokes a mysql process which doesn't leak credentials to logs
|
||||
int const ret = Acore::StartProcess(DBUpdaterUtil::GetCorrectedMySQLExecutable(), args,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue