Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Error 1114: The table is full

Error Code
SQLSTATE
Error
Description

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_ROWS and AVG_ROW_LENGTH table options. SHOW TABLE STATUS shows it as Max_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 full

The 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 df for the file system of the datadir.

  • InnoDB system tablespace: add :autoextend to the last file in innodb_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 with ALTER 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?