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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:03:38+00:00 2026-05-17T00:03:38+00:00

I have a MyISAM table containing ~20 million rows, and need to increase the

  • 0

I have a MyISAM table containing ~20 million rows, and need to increase the maximum size of a varchar. No matter how I phrase the ALTER TABLE query, it takes forever as MySQL copies all the data to a temporary table, reindexes it, etc – it seems to think that the data needs to be converted. Since it’s a varchar already, I’d have thought it wouldn’t need to do any of this.

Is there some way to force MySQL to increase the maximum length of a varchar without going through this horribly slow and painful process? I’m ideally looking for something which can be done entirely using SQL, so no trickery involving copying .frm files around etc.

  • 1 1 Answer
  • 1 View
  • 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-17T00:03:38+00:00Added an answer on May 17, 2026 at 12:03 am

    One alternative would be to

    1. create a copy of the table, but with the increased VARCHAR you need the table to be. BUT NO INDEXES.
    2. Populate the new version of the table:

      INSERT INTO new_table
      SELECT * FROM old_table
      
    3. Apply indexes
    4. Update application references to use new_table

    Step 4 can be minimized by updating the application to use a view that points to old_table until the new_table is ready. Then you refresh the view, setting it to use new_table…

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

Sidebar

Related Questions

Say you have a MySQL 5.0 MyISAM table with 100 million rows, with one
I have a myISAM table with 2.5 million and rising rows. It is myisam
I have a MySQL MyISAM table with about 400 million rows of price data
I have a large MyISAM table. It's approaching 1 million rows. It's basically a
I have a MyISAM table with more than 10^7 rows. When adding data to
My MysQL database contains multiple MyISAM tables, with each table containing millions of rows.
I have two tables (MYISAM) create table A (email varchar(50)); create table B( email
I have a large mysql MyISAM table with 1.5mil rows and 4.5GB big, still
I currently have a signed integer set in a MyISAM table, The query is
We have a MyISAM table with approximately 75 milion rows that has 5 columns:

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.