Core/Updater: Fix mysql cli password prompt when password is empty.

* ref: http://community.trinitycore.org/topic/11510-world-server-bug-enter-password-to-update/

(cherry picked from commit 4335611010)
This commit is contained in:
Naios
2015-06-30 23:33:07 +02:00
parent a16d3e8eec
commit 0df90fa4a4

View File

@@ -383,7 +383,9 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
// CLI Client connection info
args.push_back("-h" + host);
args.push_back("-u" + user);
args.push_back("-p" + password);
if (!password.empty())
args.push_back("-p" + password);
// Check if we want to connect through ip or socket (Unix only)
#ifdef _WIN32