MySQL - 问题集 - "Got error 28 from storage engine"

数据库的临时目录空间不够,修改配置文件中的tmpdir,指向一个硬盘空间很大的目录即可。

windows下,找到配置文件my.ini.

[mysqld] 
tmpdir=D:/work/tool/mysql-5.6.28-winx64/temp

修改完毕重启。

 

附:查询当前临时目录

SHOW VARIABLES LIKE '%tmp%';

default_tmp_storage_engine

The default storage engine for TEMPORARY tables (created with CREATE TEMPORARY TABLE). To set the storage engine for permanent tables, set the default_storage_engine system variable.

If you disable the default storage engine at server startup, you must set the default engine for both permanent and TEMPORARY tables to a different engine or the server will not start.It was added in MySQL 5.6.3.

控制  CREATE TEMPORARY TABLE 创建的临时表的引擎类型.

max_tmp_tables

This variable is unused. It is deprecated as of MySQL 5.6.7 and will be removed in a future MySQL release.

slave_load_tmpdir

The name of the directory where the slave creates temporary files for replicating LOAD DATA INFILE statements.

tmp_table_size

The maximum size of internal in-memory temporary tables. This variable does not apply to user-created MEMORY tables.

tmpdir

The directory used for temporary files and temporary tables. This variable can be set to a list of several paths that are used in round-robin fashion. Paths should be separated by colon characters (:) on Unix and semicolon characters (;) on Windows.

posted @ 2016-10-27 12:25  肉炒辣椒  阅读(8077)  评论(0编辑  收藏  举报