物理文件 [root@roidb1 data]# cd /#innodb_temp/ [root@roidb1 #innodb_temp]# ls -lh total 160K -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_10.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_1.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_2.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_3.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_4.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_5.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_6.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_7.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_8.ibt -rw-r-----. 1 mysql mysql 80K Nov 22 18:58 temp_9.ibt [root@roidb1 #innodb_temp]#
As of MySQL 8.0.16, session temporary tablespaces always store user-created temporary tables and internal temporary tables created by the optimizer using InnoDB. (Previously, the on-disk storage engine for internal temporary tables was determined by the internal_tmp_disk_storage_engine system variable, which is no longer supported. 说明:从MySQL8.0.16版本以后,会话临时表空间总是存储创建用户临时表和 内部临时表。