From dd9f22cce99a882e367fef2f4b12f0c725a73dcb Mon Sep 17 00:00:00 2001 From: Manan Gupta Date: Tue, 28 May 2024 13:39:44 +0530 Subject: [PATCH] test: also print show grants output to debug Signed-off-by: Manan Gupta --- go/vt/mysqlctl/mysqld.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/vt/mysqlctl/mysqld.go b/go/vt/mysqlctl/mysqld.go index 952c0987c82..be2cdd501bf 100644 --- a/go/vt/mysqlctl/mysqld.go +++ b/go/vt/mysqlctl/mysqld.go @@ -538,6 +538,7 @@ func (mysqld *Mysqld) WaitForDBAGrants(ctx context.Context, waitTime time.Durati if fetchErr != nil { log.Errorf("Error running SHOW GRANTS - %v", fetchErr) } + log.Errorf("SHOW GRANTS output - %v", res.Rows) if fetchErr == nil && res != nil && len(res.Rows) > 0 && len(res.Rows[0]) > 0 { privileges := res.Rows[0][0].ToString() // In MySQL 8.0, all the privileges are listed out explicitly, so we can search for SUPER in the output.