Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7708677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:40:22+00:00 2026-06-01T00:40:22+00:00

I want to alter a table from INNODB to MEMORY ENGINE. So I typed

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:40:23+00:00Added an answer on June 1, 2026 at 12:40 am

    You should adjust the way you make and load the table

    CREATE TABLE sns_memory SELECT * FROM sns WHERE 1=2;
    ALTER TABLE sns_memory ENGINE=MEMORY;
    INSERT INTO sns_memory SELECT * FROM sns;
    DROP TABLE sns;
    ALTER TABLE sns_memory RENAME sns;
    

    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

    [mysqld]
    tmp_table_size=2G
    max_heap_table_size=2G
    

    this will cover mysql restarts. To set these values in mysqld right now without restarting run this:

    SET GLOBAL tmp_table_size = 1024 * 1024 * 1024 * 2;
    SET GLOBAL max_heap_table_size = 1024 * 1024 * 1024 * 2;
    

    If you are checking the above variables with

    SELECT @@max_heap_table_size;
    

    or

    SHOW VARIABLES LIKE 'max_heap_table_size';
    

    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:

    SET tmp_table_size = 1024 * 1024 * 1024 * 2;
    SET max_heap_table_size = 1024 * 1024 * 1024 * 2;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to call create table/ alter table command from a procedure. Is it
I want to change a table from MyISAM to InnoDB. I executed ALTER TABLE
Basically I want to alter the boolean value selecting from the table: e.g.: SELECT
I want to alter a field from a table which has about 4 million
I want to run subquery within ALTER TABLE command in DB2. ALTER TABLE user
ALTER TABLE variable ADD KEY somekey name I want to remove the line from
I am simply trying to convert a table from MyISAM to INNODB. This is
I want to alter the type of a column from bit to tinyint. This
I want to display the column 'name' after being found from the table mytest.
I want to alter a table if that column already exists. If it doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.