1.获取镜像并运行percona数据库实例
docker pull herrmannhinz/percona5.7-tokudb-centos68
docker run --privileged --name percona5.7-tokudb-centos68 -m 2048m -p 13306:3306 -p 10022:22 -e MYSQL_ROOT_PASSWORD=andrew -d herrmannhinz/percona5.7-tokudb-centos68
2.创建表并指定TokuDB引擎
drop table if exists student_tokudb;
create table student_tokudb
(
id int not null auto_increment,
`name` varchar(50),
stu_no varchar(20),
birthday date,
grade varchar(20),
sex tinyint,
create_time datetime,
primary key(id),
unique(stu_no)
) engine=TokuDB, row_format=TOKUDB_LZMA;