Re: How to make a backup from a partition
I don't believe there is a specific tool that you could give a partition name to, but there are a couple ways:
You could use mysqldump with --tables and --where="partition key=x"
where the partition key is the full set of values for a given partition. The optimizer should recognize it and only scan the given partition.
You could use select into outfile in the same way (have the where clause define the full set of values for the given partition).
I think it would also be possible with MyIsam to lock the table (would lock all partitions) and then copy the given partition name file at the os level), but I don't think you could use mysqlhotcopy because I think it's table level with respect to granularity.
Subject
Views
Written By
Posted
4984
May 05, 2008 11:31AM
Re: How to make a backup from a partition
3312
May 05, 2008 11:55AM
2860
May 06, 2008 07:49AM
3155
May 06, 2008 08:06AM
2918
May 06, 2008 11:44AM
2770
May 07, 2008 06:54AM
3739
May 07, 2008 04:39PM
2724
May 08, 2008 03:26AM
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.