mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 09:17:51 +00:00
Merge pt-osc-requests-password-twice-1286250.
This commit is contained in:
@@ -3771,7 +3771,7 @@ sub connect {
|
||||
|
||||
my $dbh = $self->{dbh};
|
||||
if ( !$dbh || !$dbh->ping() ) {
|
||||
if ( $self->{ask_pass} && !$self->{asked_for_pass} ) {
|
||||
if ( $self->{ask_pass} && !$self->{asked_for_pass} && !defined $dsn->{p}) {
|
||||
$dsn->{p} = OptionParser::prompt_noecho("Enter MySQL password: ");
|
||||
$self->{asked_for_pass} = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user