简体   繁体   English

监视MySQL Slave复制状态

[英]Monitor MySQL Slave replication status

After committing a SQL insert operation in a MySQL master, we can't find that result in the slave for at least 5 seconds. 在MySQL主服务器中提交SQL插入操作后,我们无法在从服务器中找到该结果至少5秒。 This situation doesn't happen in every query, but it does happen occasionally. 这种情况不会在每个查询中发生,但偶尔会发生。

Does anybody know how we can fix this? 有人知道我们如何解决这个问题吗?

使用此命令检查从站状态或检查此链接复制状态

Show slave status;

You can execute show slave status; 你可以执行show slave status; query and check the output and still if seconds_behind_master shows 0 and new updates does not apply on slave then then reset your master settings by using Chnage Master.. command 查询并检查输出,如果seconds_behind_master显示0并且新的更新不适用于slave,则使用Chnage Master ..命令重置主设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM