/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
mysql -u root snappsv2tst -e "show table status \G;" | grep 'Name:' | sed 's/^\(.*\)/ALTER TABLE \1/' snappsv2_engine_alter.sql | sed 's/$/ ENGINE=INNODB;/' > snappsv2_engine_alter.sql mysql -u root dbname < snappsv2_engine_alter.sql