Error 1114: The table is full
1114
HY000
ER_RECORD_FILE_FULL
The table '%s' is full
Possible Causes and Solutions
The storage engine can't add more data to the table. The cause depends on the engine:
InnoDB. The tablespace can't grow, because the file system is full, or because the table is in the system tablespace, and innodb_data_file_path gives it a fixed size without
autoextend. For InnoDB temporary tables, the size is set by innodb_temp_data_file_path. The error log usually says which file couldn't be extended.MEMORY. The table reached max_heap_table_size. The limit that applies is the value when the table was created or last altered, not the current one.
MyISAM and Aria. The data file reached its maximum size, which is set by the
MAX_ROWSandAVG_ROW_LENGTHtable options.SHOW TABLE STATUSshows it asMax_data_length.
For example:
SET max_heap_table_size=16384;
CREATE TABLE hm (id INT, pad CHAR(200)) ENGINE=MEMORY;
INSERT INTO hm SELECT seq, 'x' FROM seq_1_to_10000;
ERROR 1114 (HY000): The table 'hm' is full
CREATE TABLE mr (id INT, pad CHAR(100)) ENGINE=MyISAM MAX_ROWS=10;
INSERT INTO mr SELECT seq, 'x' FROM seq_1_to_100000;
ERROR 1114 (HY000): The table 'mr' is fullThe rows written before the error stay in tables that aren't transactional, such as MEMORY and MyISAM. In these examples, 36 and 65535 rows.
To solve the error:
Full file system: free space, or move the data to a larger file system. Check
dffor the file system of the datadir.InnoDB system tablespace: add
:autoextendto the last file ininnodb_data_file_path, or add a file, and restart the server. To keep tables out of the system tablespace, use innodb_file_per_table, which is ON by default.MEMORY: raise
max_heap_table_size, then rebuild the table withALTER TABLE hm ENGINE=MEMORY, so that it picks up the new limit.MyISAM and Aria: raise the limit with
ALTER TABLE mr MAX_ROWS=1000000000. This rebuilds the table.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

