网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

MySQL会话临时表空间

1、物理文件
[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]# 
2、临时表空间目录
mysql> show variables like 'innodb_temp_tablespaces_dir';
+-----------------------------+-----------------+
| Variable_name               | Value           |
+-----------------------------+-----------------+
| innodb_temp_tablespaces_dir | ./#innodb_temp/ |
+-----------------------------+-----------------+
1 row in set (0.00 sec)

使用了新的版本MySQL8.0.18,有很多地方和MySQL5.7有很大的区别。
Defines the location where InnoDB creates a pool of session temporary tablespaces at startup. The default location is the #innodb_temp directory in the data directory. A fully qualified path or path relative to the data directory is permitted.
说明:定义了创建临时表空间池的位置。默认位置为#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版本以后,会话临时表空间总是存储创建用户临时表和
内部临时表。

网站栏目:MySQL会话临时表空间
文章来源:http://bjjierui.cn/article/jicjid.html

其他资讯