Skip to content

Instantly share code, notes, and snippets.

@meeuw
Created November 19, 2014 20:07
Show Gist options
  • Save meeuw/dde5e3430b2c39a25ea6 to your computer and use it in GitHub Desktop.
Save meeuw/dde5e3430b2c39a25ea6 to your computer and use it in GitHub Desktop.
mysql --skip-column-names -Be "SELECT TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA = '$DATABASE' AND engine = 'MyISAM';"|while read TABLE ; do echo "alter table $TABLE ENGINE=InnoDB; " ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment