1 2 3 4 5
if (`select count(*) < 3 from information_schema.tables where table_schema = 'mysql' and table_name in ('table_stat','column_stat','index_stat')`) { --skip Needs stat tables }