Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why does converting from MyISAM to InnoDB takes forever?
  2. ALTER TABLE table_name ENGINE = InnoDB;
  3.        
  4. SET unique_checks=0;
  5. ALTER TABLE table_name ENGINE = InnoDB;    
  6. SET unique_checks=1;
  7.        
  8. INSERT INTO newtable SELECT * FROM oldtable
  9. WHERE yourkey > something AND yourkey <= somethingelse;