From 84ce2f7a35e8b364f8e59099762900df6d54fa80 Mon Sep 17 00:00:00 2001 From: tangenta Date: Wed, 21 Apr 2021 17:17:46 +0800 Subject: [PATCH] playground: add --comments option to the connection hint --- components/playground/playground.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/playground/playground.go b/components/playground/playground.go index 269f03da4a..3071df7af7 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -873,7 +873,8 @@ If you'd like to use a TiDB version other than %s, cancel and retry with the fol fmt.Println(color.GreenString("CLUSTER START SUCCESSFULLY, Enjoy it ^-^")) for _, dbAddr := range succ { ss := strings.Split(dbAddr, ":") - fmt.Println(color.GreenString("To connect TiDB: mysql --host %s --port %s -u root -p (no password)", ss[0], ss[1])) + connectMsg := "To connect TiDB: mysql --host %s --port %s -u root -p (no password) --comments" + fmt.Println(color.GreenString(connectMsg, ss[0], ss[1])) } }