Comments - MEMORY Storage Engine
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Some findings: The memory for a MEMORY table is only allocated when used. So an empty MEMORY table does nearly not use any space.
Example: 2 MEMORY tables with max_heap_table_size = 64M and fully filled up until: ERROR 1114 (HY000): The table 'test_mem2' is full