From 4335611010de3e1f6c0903b4a46508b8e22db5d3 Mon Sep 17 00:00:00 2001 From: Naios Date: Tue, 30 Jun 2015 23:33:07 +0200 Subject: 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/ --- src/server/shared/Updater/DBUpdater.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/server/shared/Updater/DBUpdater.cpp') diff --git a/src/server/shared/Updater/DBUpdater.cpp b/src/server/shared/Updater/DBUpdater.cpp index fd91e94b78f..7b39062222e 100644 --- a/src/server/shared/Updater/DBUpdater.cpp +++ b/src/server/shared/Updater/DBUpdater.cpp @@ -351,7 +351,9 @@ void DBUpdater::ApplyFile(DatabaseWorkerPool& 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 -- cgit v1.2.3