From 388dc4c3f8c89b817f612dff3ce0d52ecb9dd7b7 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 10 Nov 2005 17:05:36 -0800 Subject: Don't try to mysqlhotcopy the INFORMATION_SCHEMA database. (Bug #14610) scripts/mysqlhotcopy.sh: Skip INFORMATION_SCHEMA when matching database names against regex. --- scripts/mysqlhotcopy.sh | 1 + 1 file changed, 1 insertion(+) 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 ); } } -- cgit v1.2.1