Permalink
Browse files

Fixed an issue where null storage engines appeared when querying INFO…

…RMATION_SCHEMA.
  • Loading branch information...
1 parent a2bb3ab commit e419c79356331ec10fe70a8a494c2def94b9e04b @major major committed May 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 mysqltuner.pl
View
@@ -429,7 +429,7 @@ sub check_storage_engines {
print "$engines\n";
if ($mysqlvermajor >= 5) {
# MySQL 5 servers can have table sizes calculated quickly from information schema
- my @templist = `mysql $mysqllogin -Bse "SELECT ENGINE,SUM(DATA_LENGTH),COUNT(ENGINE) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') GROUP BY ENGINE ORDER BY ENGINE ASC;"`;
+ my @templist = `mysql $mysqllogin -Bse "SELECT ENGINE,SUM(DATA_LENGTH),COUNT(ENGINE) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND ENGINE IS NOT NULL GROUP BY ENGINE ORDER BY ENGINE ASC;"`;
foreach my $line (@templist) {
my ($engine,$size,$count);
($engine,$size,$count) = $line =~ /([a-zA-Z_]*)\s+(\d+)\s+(\d+)/;

0 comments on commit e419c79

Please sign in to comment.