Fixed to work with MySQL 5.0.

information_schema.engines table was added in MySQL 5.1.5.
https://dev.mysql.com/doc/refman/5.1/en/engines-table.html
This commit is contained in:
MATSUU Takuto 2014-02-24 21:31:20 +09:00
parent 5f59ce5bc7
commit 85393335ce

View file

@ -533,7 +533,7 @@ sub check_storage_engines {
print "\n-------- Storage Engine Statistics -------------------------------------------\n";
infoprint "Status: ";
my $engines;
if (mysql_version_ge(5)) {
if (mysql_version_ge(5, 1, 5)) {
my @engineresults = `mysql $mysqllogin -Bse "SELECT ENGINE,SUPPORT FROM information_schema.ENGINES WHERE ENGINE NOT IN ('performance_schema','MyISAM','MERGE','MEMORY') ORDER BY ENGINE ASC"`;
foreach my $line (@engineresults) {
my ($engine,$engineenabled);