mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
PT-1563 Fixed pt-show-grants for MySQL 5.6
Also updated tests for MySQL 8.0+
This commit is contained in:
@@ -37,10 +37,8 @@ my $cnf = '/tmp/12345/my.sandbox.cnf';
|
||||
# #############################################################################
|
||||
|
||||
# allow auto create user for a moment
|
||||
my $modes = new SqlModes($dbh, global=>1);
|
||||
$modes->del('NO_AUTO_CREATE_USER');
|
||||
diag(`/tmp/12345/use -u root -e "CREATE USER ''\@''"`);
|
||||
diag(`/tmp/12345/use -u root -e "GRANT USAGE ON *.* TO ''\@''"`);
|
||||
$modes->restore_original_modes();
|
||||
|
||||
$output = `/tmp/12345/use -e "SELECT user FROM mysql.user WHERE user = ''"`;
|
||||
like(
|
||||
|
Reference in New Issue
Block a user