MySQL Forums
Forum List  »  MyISAM

Re: Table keeps crashing. Why?
Posted by: Rick James
Date: March 27, 2015 12:22AM

CREATE TABLE new LIKE naughty;
INSERT INTO new SELECT * FROM naughty;
RENAME TABLE naughty TO old, new TO naughty;
DROP TABLE old;

Or, better yet, convert to InnoDB.

Options: ReplyQuote


Subject
Views
Written By
Posted
3467
March 24, 2015 05:14PM
Re: Table keeps crashing. Why?
1892
March 27, 2015 12:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.