mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-02-27 02:00:57 +08:00
small bug in regex
This commit is contained in:
@@ -2067,7 +2067,7 @@ sub main {
|
||||
$create =~ s{ BY }{ AS };
|
||||
if ( $create =~ m/caching_sha2_password/ ) {
|
||||
print "-- Converting $user_host caching_sha2_password to binary for correct export/import\n";
|
||||
$create =~ s/\sAS\s.*'\s|$/ AS $pw_bin /g;
|
||||
$create =~ s/\sAS\s.*'\s/ AS $pw_bin /g;
|
||||
}
|
||||
$alter =~ s{CREATE USER}{ALTER USER};
|
||||
# Alter user should not be pass in the latest MySQL version
|
||||
|
||||
Reference in New Issue
Block a user