MySQL Forums
Forum List  »  InnoDB

Re: Innodb Table Recovery
Posted by: Rick James
Date: September 06, 2012 10:31PM

> Was dropping the index the cause of the inndob crash?
Very unlikely. Did anything else happen about the time of the "crash"?

> I was trying to drop the primary key
Don't do that. InnoDB tables must have a PK. If you need to change the PK, do this:
ALTER TABLE foo
DROP PRIMARY KEY,
ADD PRIMARY KEY(x,y);
That is, do the DROP and ADD in a single ALTER. In general, it is best to do all ALTERs in a single statement.

Options: ReplyQuote


Subject
Views
Written By
Posted
1816
September 05, 2012 01:37PM
652
September 06, 2012 01:06AM
675
September 06, 2012 09:34AM
683
September 06, 2012 02:12AM
677
September 06, 2012 09:35AM
Re: Innodb Table Recovery
919
September 06, 2012 10:31PM


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.