#!/bin/bash file=/exploit/scripts/my_alter_table_engine_mig.sql file2=/exploit/scripts/my_alter_table_engine_mig_spe.sql mysql -pzsxedc --batch --skip-column-names --execute="select concat('ALTER TABLE ',table_schema,'.',table_name,' ENGINE=InnoDB;') from information_schema.TABLES where table_schema not in ('information_schema', 'mysql', 'performance_schema') and table_type <> 'VIEW' and engine <> 'InnoDB' and table_name not in ('General Ledger','Controlling#temporary','Overdue-DrillThrough')" > $file cat $file time mysql -pzsxedc <$file cat $file2 time mysql -pzsxedc <$file2