Created
January 16, 2014 13:12
-
-
Save zs1621/8454795 to your computer and use it in GitHub Desktop.
改变mysql表的engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use test | |
CREATE TABLE CheckInCopy LIKE CheckIn; | |
ALTER TABLE CheckInCopy ENGINE=MyISAM; | |
INSERT INTO CheckInCopy SELECT * FROM CheckIn; | |
DROP TABLE IF EXISTS `CheckIn`; | |
rename table CheckInCopy to CheckIn; | |
show create table CheckIn; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment