Commit 388dc4c3 authored by unknown's avatar unknown

Don't try to mysqlhotcopy the INFORMATION_SCHEMA database. (Bug #14610)


scripts/mysqlhotcopy.sh:
  Skip INFORMATION_SCHEMA when matching database names against regex.
parent db813bde
...@@ -252,6 +252,7 @@ if ( defined $opt{regexp} ) { ...@@ -252,6 +252,7 @@ if ( defined $opt{regexp} ) {
my $sth_dbs = $dbh->prepare("show databases"); my $sth_dbs = $dbh->prepare("show databases");
$sth_dbs->execute; $sth_dbs->execute;
while ( my ($db_name) = $sth_dbs->fetchrow_array ) { while ( my ($db_name) = $sth_dbs->fetchrow_array ) {
next if $db_name =~ m/^information_schema$/i;
push @db_desc, { 'src' => $db_name, 't_regex' => $t_regex } if ( $db_name =~ m/$opt{regexp}/o ); push @db_desc, { 'src' => $db_name, 't_regex' => $t_regex } if ( $db_name =~ m/$opt{regexp}/o );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment