summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-11-10 17:05:36 -0800
committerunknown <jimw@mysql.com>2005-11-10 17:05:36 -0800
commit388dc4c3f8c89b817f612dff3ce0d52ecb9dd7b7 (patch)
tree28bd486bc37eed2b99dc352ea41fa015335be089 /scripts
parentdb813bde04c8755ba2dee7ef2668add3473cab23 (diff)
downloadmariadb-git-388dc4c3f8c89b817f612dff3ce0d52ecb9dd7b7.tar.gz
Don't try to mysqlhotcopy the INFORMATION_SCHEMA database. (Bug #14610)
scripts/mysqlhotcopy.sh: Skip INFORMATION_SCHEMA when matching database names against regex.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysqlhotcopy.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index 1c5cd6a4faf..bf53aa78e15 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -252,6 +252,7 @@ if ( defined $opt{regexp} ) {
my $sth_dbs = $dbh->prepare("show databases");
$sth_dbs->execute;
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 );
}
}