Ignore "performance_schema"
authorAlexander Barton <alex@barton.de>
Tue, 4 Aug 2015 10:07:59 +0000 (12:07 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 4 Aug 2015 10:07:59 +0000 (12:07 +0200)
bin/mkmysqldump

index 8489f2eeaab359f5d864513a6d083b9137488d05..dea8a8a0cd7d2cf33e1f765416d78f85f8b0637d 100755 (executable)
@@ -92,7 +92,9 @@ echo "Getting list of databases from server ..."
 DATABASES=$(
        mysql -h "$MYHOST" -u "$MYUSER" $PWSWITCH -e 'show databases' \
         | grep "^\| " | cut -d' ' -f2 | grep -v "Database" \
-        | grep -v "information_schema" | grep -v "mysql"
+        | grep -v "information_schema" \
+        | grep -v "performance_schema" \
+        | grep -v "mysql"
 )
 if [ $? -ne 0 ]; then
        echo "Failed to get list of databases! Aborting!"