MySQL Variables internal_tmp_disk_storage_engine 数据库 参数变量解释及正确配置使用
本站中文解释
MySQL的internal_tmp_disk_storage_engine参数用于指定MySQL在操作系统的特定文件系统中临时存储执行操作时创建的临时表的存储引擎类型。例如,在某些操作中,MySQL可能创建临时表,并将其存储在系统上的一些其他位置,而不是放在数据库的表上。
要设置internal_tmp_disk_storage_engine参数,请在mysql>提示符下输入以下命令:
SET GLOBAL internal_tmp_disk_storage_engine=TYPE;
其中,TYPE是要指定的存储引擎类型(例如MyISAM)。
官方英文解释
internal_tmp_disk_storage_engine
Command-Line Format | --internal-tmp-disk-storage-engine=# |
---|---|
System Variable | internal_tmp_disk_storage_engine |
Scope | Global |
Dynamic | Yes |
Type | Enumeration |
Default Value | INNODB |
Valid Values |
|
The storage engine for on-disk internal temporary tables (see
Section 8.4.4, “Internal Temporary Table Use in MySQL”). Permitted values
are MYISAM
and INNODB
(the default).
The optimizer uses the
storage engine defined by
internal_tmp_disk_storage_engine
for on-disk internal temporary tables.
When using
internal_tmp_disk_storage_engine=INNODB
(the default), queries that generate on-disk internal
temporary tables that exceed
InnoDB
row or
column limits return Row size too
large or Too many columns
errors. The workaround is to set
internal_tmp_disk_storage_engine
to MYISAM
.