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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM