]> gitweb.fluxo.info Git - backupninja.git/commitdiff
mysql: Don't attempt to dump performance_schema database (Redmine#3741).
authorintrigeri <intrigeri@boum.org>
Tue, 24 Jan 2012 00:23:33 +0000 (01:23 +0100)
committerintrigeri <intrigeri@boum.org>
Tue, 24 Jan 2012 00:25:08 +0000 (01:25 +0100)
Locking its tables require privileges the 'debian-sys-maint'@'localhost' user is
generally not granted.

ChangeLog
handlers/mysql.in

index 9a011c0743d18923be73d36cd389b4978a0cea9a..5ca279ddc495ecfb146cc6dd601b883bad7d66ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,8 @@ version 1.0 -- UNRELEASED
           example.dup.
         . Add support for RackSpace's CloudFiles.
           Thanks to Yuval Kogman <nothingmuch@woobling.org> for the patch.
+       mysql:
+        . Don't attempt to dump performance_schema database (Redmine#3741).
 
 version 0.9.10 -- September 23, 2011
     backupninja changes
index 185a98a74db4d149be37dff6fe2306267a4ae506..65deebbc62ac840a6c10c15e263daf37141768a7 100644 (file)
@@ -256,7 +256,7 @@ then
    for db in $databases
    do
       DUMP_BASE="$MYSQLDUMP $defaultsfile $sqldumpoptions"
-      if [ "$db" = "information_schema" ]
+      if [ "$db" = "information_schema" ] || [ "$db" = "performance_schema" ]
       then
          DUMP_BASE="${DUMP_BASE} --skip-lock-tables"
       fi