I wanted to convert my database (which has more than 300 tables - all of them are MyISM type) to InnoDB format.
I googled and found the best way to achieve this is using an SQL statement
'ALTER TALE tablename type=innodb'
This SQL statement works fine - but changing 300+ tables is not an good solution.
I found this script very interesting to change all tables in a database to innoDB format.
for T in `mysql -u root -B -N -e “show tables” test`; do mysql -u root -e “alter table $T type=innodb” test; done
Replace “test” with the target database. This pattern is also great for optimizing or analyzing your MyISAM tables.
Hope this helps.