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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:10:25+00:00 2026-05-14T15:10:25+00:00

What happens if you kill a long-running alter query? Will the alter query simply

  • 0

What happens if you kill a long-running alter query? Will the alter query simply revert? How long could that take (as a proportion of the time it has already been running)?

What if that query is being replicated onto another server? Will killing the process on the other server revert the original server’s alter query?

We’re running mysql

  • 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-14T15:10:25+00:00Added an answer on May 14, 2026 at 3:10 pm

    It depends what you’re doing. If you’re running an alter table...add index command on an InnoDB table (not so sure about MyISAM), then it will just run and run as it copies the whole darn table lock-stock-and-barrel first: if it’s in the middle of “copy to temp table” then it’s pretty much unstoppable.

    See here:

    In most cases, ALTER TABLE works by
    making a temporary copy of the
    original table. The alteration is
    performed on the copy, and then the
    original table is deleted and the new
    one is renamed. While ALTER TABLE is
    executing, the original table is
    readable by other sessions. Updates
    and writes to the table are stalled
    until the new table is ready, and then
    are automatically redirected to the
    new table without any failed updates.

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

Sidebar

Related Questions

What happens if a long running page is closed by the user before he
I'm having problems with some AS3 code that simply draws on a Sprite 's
How do I find (and kill) processes that listen to/use my TCP ports? I'm
I am unsure about how to completely kill a node that uses graphics in
Kill-9-signalling all postgres processes ignite errors immediately after the command: $ psql psql: could
I am attempting to write a service, that will every X minutes attempt to
What happens to a thread once it hits the ends? Does it kill itself?
what would happen if I spin off a thread to execute a long-running process
I have a database that is stuck in single-user mode. I kill the process
I'm running a standard configuration of Apache with PHP. I'm wondering what happens when

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.