Core/DBUpdater: Fixed db updater for mysql 8 on windows using named pipe connections

This commit is contained in:
Shauren
2019-11-03 14:14:32 +01:00
parent 12e17a586e
commit f689f6e9bd

View File

@@ -378,7 +378,10 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
// Check if we want to connect through ip or socket (Unix only)
#ifdef _WIN32
args.push_back("-P" + port_or_socket);
if (host == ".")
args.push_back("--protocol=PIPE");
else
args.push_back("-P" + port_or_socket);
#else