diff --git a/dbms/programs/client/Client.cpp b/dbms/programs/client/Client.cpp index 664f5d79df5..5227edcafe6 100644 --- a/dbms/programs/client/Client.cpp +++ b/dbms/programs/client/Client.cpp @@ -1685,7 +1685,7 @@ public: config().setInt("port", options["port"].as()); if (options.count("secure")) config().setBool("secure", true); - if (options.count("user")) + if (options.count("user") && !options["user"].defaulted()) config().setString("user", options["user"].as()); if (options.count("password")) config().setString("password", options["password"].as());