Changes between Version 4 and Version 5 of Partition


Ignore:
Timestamp:
06/15/22 13:53:09 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Partition

    v4 v5  
    5252
    5353}}}
     54
     555. Archive partition base on [https://mysql.dbgeekgirl.com/2018/12/exchange-partition-archiving-strategy.html here]. First, we create a table like payments2
     56{{{
     57mysql> create table payments_2004 like payments2;
     58}}}
     59
     606. We remove partition from new table that we create
     61{{{
     62mysql> alter table payments_2004 remove partitioning;
     63}}}
     64
     657. We move partition of payments2 to payments_2004
     66{{{
     67mysql> alter table payments2 exchange partition p2004 with table payments_2004;
     68}}}
     69
     708. To move back from payments_2004 to partition p2004 in payment2
     71{{{
     72mysql> alter table payments3 exchange partition p2004 with table payments_2004;
     73}}}
     74