mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
22 lines
537 B
Text
22 lines
537 B
Text
CREATE TABLE t(i int)
|
|
ENGINE=InnoDB
|
|
PARTITION BY RANGE (i)
|
|
(PARTITION p0 VALUES LESS THAN (100),
|
|
PARTITION P1 VALUES LESS THAN (200),
|
|
PARTITION p2 VALUES LESS THAN (300) DATA DIRECTORY = 'MYSQLTEST_VARDIR/partitdata',
|
|
PARTITION p3 VALUES LESS THAN (400) DATA DIRECTORY = 'MYSQLTEST_VARDIR/partitdata',
|
|
PARTITION p4 VALUES LESS THAN MAXVALUE);
|
|
INSERT INTO t VALUES (1), (101), (201), (301), (401);
|
|
DROP TABLE t;
|
|
# shutdown server
|
|
# remove datadir
|
|
# xtrabackup move back
|
|
# restart server
|
|
SELECT * FROM t;
|
|
i
|
|
1
|
|
101
|
|
201
|
|
301
|
|
401
|
|
DROP TABLE t;
|