#!/usr/bin/php query("SHOW TABLES;"); while ($db->next_record()) { $tables[]=$db->Record[0]; } echo "Setting AlternC's tables to InnoDB engine\n"; foreach($tables as $table) { $db->query("ALTER TABLE `".$table."` ENGINE InnoDB;"); } echo "Done\n";