Skip to content

Instantly share code, notes, and snippets.

@heydonovan
Created February 20, 2014 22:26
Show Gist options
  • Save heydonovan/9124600 to your computer and use it in GitHub Desktop.
Save heydonovan/9124600 to your computer and use it in GitHub Desktop.
Convert MyISAM to InnoDB
DATABASENAME='wp_cbi'; for i in $(mysql $DATABASENAME -Bse 'SHOW TABLES'); do echo mysql $DATABASENAME -e "ALTER TABLE $i ENGINE = InnoDB;"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment