--- mariadb-hotcopy.ORIG	2022-02-20 08:08:00.000000000 +1100
+++ mariadb-hotcopy	2022-12-18 08:57:59.338019141 +1100
@@ -271,6 +271,23 @@
     $sth_dbs->execute;
     while ( my ($db_name) = $sth_dbs->fetchrow_array ) {
 	next if $db_name =~ m/^information_schema$/i;
+#####
+# Using mariadb-hotcopy at MariaDB 10.5.18, I get the error:
+# 
+# DBD::MariaDB::db do failed:  command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` at /usr/bin/mariadb-hotcopy line 523.
+# 
+# (Issue originally noticed in MySQL in 2014...)
+# Googling for similar, came across
+# http://bugs.mysql.com/bug.php?id=61414
+# that says to skip database "performance_schema" also.
+# Doing just that:
+	next if $db_name =~ m/^performance_schema$/i;
+#
+# Reported to Debian, see:
+#   http://bugs.debian.org/735014
+# and mentioned in JIRA:
+#   https://jira.mariadb.org/browse/MDEV-21317
+#####
 	push @db_desc, { 'src' => $db_name, 't_regex' => $t_regex } if ( $db_name =~ m/$opt{regexp}/o );
     }
 }
