MySQL Forums
Forum List  »  Backup

Re: Backup one of the sections in innodb table
Posted by: Rick James
Date: February 24, 2011 08:59AM

A possibility... (Caveat: I have no first-hand knowledge whether this will work!)
http://dev.mysql.com/doc/refman/5.1/en/alter-table.html
1. Copy the .ibd file of the partition you are getting rid of to somewhere.
2. DISCARD TABLESPACE
3. REORGANIZE -- to deal with the now-missing partition.
4. REORGANIZE and IMPORT TABLESPACE -- move the .ibd file into another, similarly declared, TABLE.

As I read the docs, that should be an efficient way to move partition(s) from one table to another.

Note: DISCARD and IMPORT are required because of ids buried in ibdata1 that deal with partitions. (Or something like that.)

Please let us know if this works.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Backup one of the sections in innodb table
1916
February 24, 2011 08:59AM


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.