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 7013389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:22:51+00:00 2026-05-27T22:22:51+00:00

I have a table defined as such: CREATE TABLE `_debug_log` ( … ) ENGINE=MyISAM

  • 0

I have a table defined as such:

CREATE TABLE `_debug_log` (
  ...
) ENGINE=MyISAM AUTO_INCREMENT=896692 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci MAX_ROWS=100000 ROW_FORMAT=COMPRESSED;

I’d like to drop the MAX_ROWS option as it isn’t necessary for this table, but I do need to keep the existing data. Is there a way to unset this table option via an ALTER statement, or will I need to export the data, rebuild the table and then import the data back in? I checked the MySQL docs on MAX_ROWS, but it only says it requires a positive integer value and doesn’t say what the default value is or what a value of 0 might do.

  • 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-05-27T22:22:52+00:00Added an answer on May 27, 2026 at 10:22 pm

    For what it is worth:

    CREATE TABLE `_debug_log` (
    id int unsigned primary key auto_increment
    ) ENGINE=MyISAM AUTO_INCREMENT=896692 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci MAX_ROWS=100000 ROW_FORMAT=COMPRESSED;
    
    SHOW CREATE TABLE _debug_log;
    

    gives:

    CREATE TABLE `_debug_log` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM AUTO_INCREMENT=896692 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci MAX_ROWS=100000 ROW_FORMAT=COMPRESSED
    

    then:

    alter table _debug_log max_rows = 0;
    
    SHOW CREATE TABLE _debug_log;
    

    gives:

    CREATE TABLE `_debug_log` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM AUTO_INCREMENT=896692 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED
    

    I tried inserting some data before running the ALTER and after running the ALTER and it did not seem to be affected.

    Furthermore, if you create the same table with the same options but exclude the MAX_ROWS option, insert the same data and then take a look at the resulting data in information_schema.tables the data is pretty much identical (obvious differences aside):

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 tables, defined as such: CREATE TABLE `product` ( `pid` SMALLINT( 5
I have a table defined by: CREATE TABLE bar_table ( _id INTEGER NOT NULL
I have a table defined by the following SQL: CREATE TABLE test ( id
I have an SQL table defined as below: CREATE TABLE [TestComposite] ( ID int,
I have some table with such schema (simplified): CREATE TABLE folders( id INT(11) UNSIGNED
I have a table defined as: create table Foo ( X integer, Y timestamp,
I have a table defined (see code snippet below). How can I add a
Running into a problem. I have a table defined to hold the values of
I have a declarative table defined like this: class Transaction(Base): __tablename__ = transactions id
We have a composite primary key for the site table defined below. Functionally, this

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.