I want to alter a table from INNODB to MEMORY ENGINE.
So I typed this command:
alter table sns ENGINE=MEMORY;
Then the MySQL shows
ERROR 1114 (HY000): The table '#sql-738_19' is full
The data size for the table is 1GB, and I have 8GB Memory.
I checked my.cnf, and I didn’t find where to change the max_size setting. Shouldn’t I be able to store more data?
You should adjust the way you make and load the table
This will get around any imposed limits by tmp_table_size and max_heap_table_size.
Just the same, you need to do two things:
Add this to /etc/my.cnf
this will cover mysql restarts. To set these values in mysqld right now without restarting run this:
If you are checking the above variables with
or
you may notice that they don’t seem to change following the
SET GLOBAL...statements. This is because the settings only apply to new connections to the server. Make a new connection, and you’ll see the values update or you could change it within your session by running: