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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:34:46+00:00 2026-05-27T15:34:46+00:00

I have a master/slave replication on my MySql DB. my slave DB was down

  • 0

I have a master/slave replication on my MySql DB.

my slave DB was down for a few hours and is back up again (master was up all the time), when issuing show slave status I can see that the slave is X seconds behind the master.

the problem is that the slave dont seem to catch up with the master, the X seconds behind master dont seem to drop…

any ideas on how I can help the slave catch up?

  • 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-27T15:34:46+00:00Added an answer on May 27, 2026 at 3:34 pm

    Here is an idea

    In order for you to know that MySQL is fully processing the SQL from the relay logs. Try the following:

    STOP SLAVE IO_THREAD;
    

    This will stop replication from downloading new entries from the master into its relay logs.

    The other thread, known as the SQL thread, will continue processing the SQL statements it downloaded from the master.

    When you run SHOW SLAVE STATUS\G, keep your eye on Exec_Master_Log_Pos. Run SHOW SLAVE STATUS\G again. If Exec_Master_Log_Pos does not move after a minute, you can go ahead run START SLAVE IO_THREAD;. This may reduce the number of Seconds_Behind_Master.

    Other than that, there is really nothing you can do except to:

    • Trust Replication
    • Monitor Seconds_Behind_Master
    • Monitor Exec_Master_Log_Pos
    • Run SHOW PROCESSLIST;, take note of the SQL thread to see if it is processing long running queries.

    BTW Keep in mind that when you run SHOW PROCESSLIST; with replication running, there should be two DB Connections whose user name is system user. One of those DB Connections will have the current SQL statement being processed by replication. As long as a different SQL statement is visible each time you run SHOW PROCESSLIST;, you can trust mysql is still replicating properly.

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

Sidebar

Related Questions

In a MySQL master-slave replication enviroment if I have 4 slave servers how can
I have configured a MySql Replication with 1 Master 1 Standy and 1 Slave.
I have set up MySQL master/slave replication for 2 servers before without problems, I
I'm setting up MySQL replication via binlog. It's a master / slave setup. I
I have set up replication for MySQL server. I can connect from the slave
I have a Master to Master replication set up between two MySQL 5.0 My
I have a master-master MySQL replication. It was delicious until yesterday but, for some
We have a Rails application that is running in a MySQL master-slave set-up for
I am just wondering how I can use a Master/Slave MySQL replication database with
So I'm looking at setting up MySQL Replication in a very basic master/slave setup.

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.