1update performance_schema.setup_instruments set enabled='YES' where name like '%innodb_temp%'; 2update performance_schema.setup_consumers set enabled='YES'; 3use test; 4CREATE TABLE `t1`(`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name1` varchar(180) NOT NULL, `name2` varchar(180) DEFAULT NULL, `name3` varchar(180) DEFAULT NULL, `name4` varchar(180) DEFAULT NULL, PRIMARY KEY (`id`,`name1`(10)) ) engine=InnoDB; 5set @id:=0; 6insert into t1 values 7(@id:=@id+1,md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000)) 8, (@id:=@id+1,md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000)) 9, (@id:=@id+1,md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000)) 10, (@id:=@id+1,md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000)); 11insert into `t1`(`id`,`name1`,`name2`,`name3`,`name4`) 12select @id:=@id+1,md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000),md5(rand()*1000000) from 13`t1` k1, `t1` k2, `t1` k3, `t1` k4,`t1` k5,`t1` k6; 14create index i_dtyp_big on `t1`(name1) algorithm=inplace; 15select distinct object_name from performance_schema.events_waits_history_long where event_name like '%wait%io%file%innodb%innodb_temp_file%' 16and object_name like '%Innodb Merge Temp File%'; 17object_name 18MYSQL_TEST_DIR#Innodb Merge Temp File 19drop table t1; 20