From 1cc88919d4d1e7fbed097c5dcb3a41cf4c95823f Mon Sep 17 00:00:00 2001 From: liyang Date: Mon, 9 Oct 2023 18:01:24 +0800 Subject: [PATCH] fix: psql connect error --- pkg/cmd/gtctl/cluster/create/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/gtctl/cluster/create/create.go b/pkg/cmd/gtctl/cluster/create/create.go index 0c3e2d23..1933dd01 100644 --- a/pkg/cmd/gtctl/cluster/create/create.go +++ b/pkg/cmd/gtctl/cluster/create/create.go @@ -340,7 +340,7 @@ func printTips(l logger.Logger, clusterName string, options *ClusterCliOptions) if !options.BareMetal { l.V(0).Infof("%s", fmt.Sprintf("%s kubectl port-forward svc/%s-frontend -n %s 4003:4003 > connections-pg.out &", logger.Bold("$"), clusterName, options.Namespace)) } - l.V(0).Infof("%s", fmt.Sprintf("%s psql -h 127.0.0.1 -p 4003", logger.Bold("$"))) + l.V(0).Infof("%s", fmt.Sprintf("%s psql -h 127.0.0.1 -p 4003 -d public", logger.Bold("$"))) l.V(0).Infof("\nThank you for using %s! Check for more information on %s. 😊", logger.Bold("GreptimeDB"), logger.Bold("https://greptime.com")) l.V(0).Infof("\n%s 🔑", logger.Bold("Invest in Data, Harvest over Time.")) }