Files
percona-toolkit/t/pt-online-schema-change/samples/pt-244.sql
Carlos Salguero 7c1c99d9ca PT-244 Fixed --data-dir with partitions
Made DATA DIRECTORY to be inserted at the correct place, not at the end
of the create table query.
2018-01-16 15:57:06 -03:00

11 lines
218 B
SQL

DROP DATABASE IF EXISTS test;
CREATE DATABASE test;
USE test;
CREATE TABLE t3 (
c INT PRIMARY KEY AUTO_INCREMENT
) ENGINE=InnoDB PARTITION BY HASH(c) PARTITIONS 4;
INSERT INTO t3 VALUES (1), (2), (3), (4), (5);