+ // Note: In MYSQL 8 the Tables have been renamed from INNODB_SYS_TABLES and INNODB_SYS_INDEXES to INNODB_TABLES and INNODB_INDEXES
+ $innodbTable = "innodb_sys_tables";
+ $innodbIndex = "innodb_sys_indexes";
+ if (version_compare($mysqlVersion, '8.0', '>=')) {
+ $innodbTable = "innodb_tables";
+ $innodbIndex = "innodb_indexes";
+ }