From e7d352b6ecd20441a59bd6fb9838f9de068bc59f Mon Sep 17 00:00:00 2001 From: Frank Cizmich Date: Wed, 28 May 2014 17:04:59 -0300 Subject: [PATCH] fixes pt-osc double password request - issue 1286250 --- bin/pt-online-schema-change | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index 84063c65..d3874930 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -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; }