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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:41:17+00:00 2026-05-22T23:41:17+00:00

In a MySQL MASTER MASTER scenario using InnoDB When dropping an index on one

  • 0

In a MySQL MASTER MASTER scenario using InnoDB

When dropping an index on one instance will the same table on the other instance be available?

What is the sequence of activities?
I assume the following sequence:

  1. DROP INDEX on 1st instance
  2. Added to the binary log
  3. DROP INDEX on 2nd instance

Can anyone confirm?

  • 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-22T23:41:17+00:00Added an answer on May 22, 2026 at 11:41 pm

    I believe the following will happen:

    • Your DROP INDEX (which really runs an ALTER TABLE ... DROP INDEX) runs on the master
    • If the ALTER completes successfully the statement will then be added to the binlog and will be run on the slave

    This means that the ALTER TABLE on the other machine won’t start until the ALTER TABLE has successfully completed on the first (master) machine.

    While the ALTER TABLE is running on either machine the table will be readable for a while and then neither readable/writeable as MySQL first makes a copy of the table internally then applies the changes.

    From http://dev.mysql.com/doc/refman/5.0/en/alter-table.html

    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.
    The temporary table is created in the
    database directory of the new table.
    This can be different from the
    database directory of the original
    table if ALTER TABLE is renaming the
    table to a different database.

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

Sidebar

Related Questions

From what I learned, a MySQL MASTER server is one that can both read
We started using Multi-Master Replication Manager for MySQL, and I am wondering whether it
Using MySQL 5 I have a table like this: date (varchar) door (varchar) shift
I have a complex MySQL query that joins three tables and self-joins one table
Re: MySQL's global configuration option auto_increment_increment . Other than multi-master/circular replication in conjunction with
I want to do some inserts on a table (master mysql DB) but I
I have a situation, I have a mySql table named 'Master File' with contains
we have a eMall application based mainly around a ~500k rows MySQL master table
I have a MySql Master server replicating to three Slaves. A legacy website is
I'm running a master-slave MySQL binary log replication system (phew!) that, for some data,

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.