From 26adfd7675a56e03f9fd8fca8c0e025c62113786 Mon Sep 17 00:00:00 2001 From: glkappe Date: Wed, 18 Aug 2021 16:08:00 +0800 Subject: [PATCH] Adjust --comments position (#1522) --- components/playground/playground.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/playground/playground.go b/components/playground/playground.go index 74663a08e2..b97bc49cae 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -460,7 +460,7 @@ func (p *Playground) handleScaleOut(w io.Writer, cmd *Command) error { addr := p.tidbs[len(p.tidbs)-1].Addr() if checkDB(addr, cmd.UpTimeout) { ss := strings.Split(addr, ":") - connectMsg := "To connect new added TiDB: mysql --host %s --port %s -u root -p (no password) --comments" + connectMsg := "To connect new added TiDB: mysql --comments --host %s --port %s -u root -p (no password)" fmt.Println(color.GreenString(connectMsg, ss[0], ss[1])) fmt.Fprintln(w, color.GreenString(connectMsg, ss[0], ss[1])) } @@ -884,7 +884,7 @@ func (p *Playground) bootCluster(ctx context.Context, env *environment.Environme fmt.Println(color.GreenString("CLUSTER START SUCCESSFULLY, Enjoy it ^-^")) for _, dbAddr := range succ { ss := strings.Split(dbAddr, ":") - connectMsg := "To connect TiDB: mysql --host %s --port %s -u root -p (no password) --comments" + connectMsg := "To connect TiDB: mysql --comments --host %s --port %s -u root -p (no password)" fmt.Println(color.GreenString(connectMsg, ss[0], ss[1])) } }