PT-1563 Fixed pt-show-grants for MySQL 5.6

Also updated tests for MySQL 8.0+
This commit is contained in:
Carlos Salguero
2018-05-28 15:29:18 -03:00
parent b2decb0f82
commit 7666af3fbb
5 changed files with 15 additions and 15 deletions

View File

@@ -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(