Skip to content

Instantly share code, notes, and snippets.

@seanconklin
Created July 17, 2020 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save seanconklin/cab3ae477602d7192614a24cb35cbe2b to your computer and use it in GitHub Desktop.
Save seanconklin/cab3ae477602d7192614a24cb35cbe2b to your computer and use it in GitHub Desktop.
SELECT CONCAT( 'ALTER TABLE ', TABLE_NAME, ' ENGINE=InnoDB;' )
FROM INFORMATION_SCHEMA.TABLES
WHERE ENGINE = 'MyISAM'
AND table_schema = 'database-name-here';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment