Reword error message.

This commit is contained in:
Daniel Nichter
2012-02-02 13:29:45 -07:00
parent 842bfd47ba
commit 3ce22bce88

View File

@@ -5890,8 +5890,7 @@ sub main {
my $sql = 'SELECT @@binlog_format';
PTDEBUG && _d($dbh, $sql);
my ($original_binlog_format) = $dbh->selectrow_array($sql);
PTDEBUG && _d('Original original_binlog_format:', $original_binlog_format);
PTDEBUG && _d('Original binlog_format:', $original_binlog_format);
if ( $original_binlog_format !~ /STATEMENT/i ) {
$sql = q{/*!50108 SET @@binlog_format := 'STATEMENT'*/};
eval {
@@ -5900,13 +5899,13 @@ sub main {
};
if ( $EVAL_ERROR ) {
die "Failed to $sql: $EVAL_ERROR\n"
. "This tool expects to work with binlog_format=STATEMENT, "
. "however, it appears to be set to $original_binlog_format, "
. "and there was an error while attempting to change it. "
. "It's possible that you are running a version of MySQL "
. "that requires SUPER user privileges to change "
. "binlog_format. In that case, you will need to manually "
. "set the format to STATEMENT before running the tool.\n";
. "This tool requires binlog_format=STATEMENT, "
. "but the current binlog_format is set to "
."$original_binlog_format and an error occurred while "
. "attempting to change it. If running MySQL 5.1.29 or newer, "
. "setting binlog_format requires the SUPER privilege. "
. "You will need to manually set binlog_format to 'STATEMENT' "
. "before running this tool.\n";
}
}