0

I have created table in MySql in Memory, but after inserting 33138 it throws an exception "table is full"

Syntax - create table Employee(name varchar(500) null) max_rows = 1000000 ENGINE=Memory;

I have also alter the table max row limit but problem still exits. Syntax - alter table employee max_rows = 1000000, avg_row_length=50;

enter image description here

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
cpVariyani
  • 159
  • 1
  • 2
  • 12
  • You should have a look at the `max_heap_table_size system variable`. *The maximum size of MEMORY tables is limited by the max_heap_table_size system variable, which has a default value of 16MB. To enforce different size limits for MEMORY tables, change the value of this variable.* Source: http://dev.mysql.com/doc/refman/5.6/en/memory-storage-engine.html – VMai Sep 23 '14 at 13:20

1 Answers1

0

I have created table in MySql in Memory and throws an exception "table is full"

Its very very likely your out of memory, if you have memory left on the machine, You have hit the mysql memory limit

MySQL maximum memory usage has more information

Community
  • 1
  • 1
exussum
  • 18,275
  • 8
  • 32
  • 65