Skip to content

Commit

Permalink
test: also print show grants output to debug
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed May 28, 2024
1 parent acf74bc commit dd9f22c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/mysqlctl/mysqld.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dd9f22c

Please sign in to comment.