From 1b04540a4c39e26e60ed1ead0980abd763cfda90 Mon Sep 17 00:00:00 2001 From: Sergei A Mamonov Date: Mon, 12 Dec 2016 14:19:49 +0300 Subject: [PATCH] fix check innodb_file_per_table with skip-innodb --- mysqltuner.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index ff4bd44..5631e7b 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1991,7 +1991,9 @@ sub check_storage_engines { $result{'Engine'}{$engine}{'Index Size'} = $isize; } my $not_innodb = ''; - if ( $result{'Variables'}{'innodb_file_per_table'} eq 'OFF' ) { + if ( not defined $result{'Variables'}{'innodb_file_per_table'} ) { + $not_innodb = "AND NOT ENGINE='InnoDB'"; + } elsif ( $result{'Variables'}{'innodb_file_per_table'} eq 'OFF' ) { $not_innodb = "AND NOT ENGINE='InnoDB'"; } $result{'Tables'}{'Fragmented tables'} =