mysql --skip-column-names --silent -e"SELECT table_name FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'имя_базы' AND engine = 'MyISAM'" | xargs -I{} mysql имя_базы -e"ALTER TABLE {} ENGINE='ARIA' TRANSACTIONAL=0;"