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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:07:45+00:00 2026-06-03T23:07:45+00:00

When exactly an event on the master(update/insert/alter) is logged on the binary log ?

  • 0

When exactly an event on the master(update/insert/alter) is logged on the binary log ?

  1. When it started on the master server, it will be written to the bin log
  2. When it started and completed on the master, then will be logged

In specific, I would like to know the behaviour in case of an ALTER
If answer is 1, there won’t be lag between master and slave in normal conditions only due to ALTERs started on the master.

  • 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-03T23:07:46+00:00Added an answer on June 3, 2026 at 11:07 pm

    Non-transactional statements are written to the binary log immediately. For MySQL 5+, this means any statement against a storage engine that doesn’t support transactions are written immediately.

    You shouldn’t be executing statements against a non-transactional table inside a transaction though.

    Transactional statements are written to the binary log when the transaction is committed. For MySQL 5+, this means any statement against a transactional table.

    Currently, ALTER TABLE forces an implicit commit, so this will immediately be written to the binary log. According to MySQL documentation:

    Binary logging is done immediately after a statement completes but before any locks are released or any commit is done. This ensures that the log is logged in execution order.

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

Sidebar

Related Questions

The code in this event is repeated exactly in two other event handlers. How
I have a webform that uses events in the master page to log activity.
UPDATE Feb 10 2012: zOompf has completed some very thorough research on this very
I've started working on my master's project and decided to try something new and
I know it happens sometime before Load, but during what event exactly?
Exactly what the title says...........any thoughts on other good options for relational database implementation
Exactly as the subject, How to create oval button in WPF application?
Exactly when are an Activity 's fields that are annotated with @InjectView or @InjectResource
What exactly is Reflection? I read the Wikipedia article on this subject and I
What exactly do certificates purchased from a CA do again (in the context of

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.