mysqldump dump-slave

 http://blog.itpub.net/29254281/viewspace-1392757/

查看从库的状态,发现从库的sql_thread进程会自动停止,停止之后 又会自动开启,没有人操作这个库
苦苦找不到原因。
通过show full processlist查看进程时,发现有一个备份的进程在执行。
找到备份的脚本,加上crontab里的定时任务,发现原来是这个备份引起的。
备份的时候,使用了dump-slave选项,造成了这个问题
This option causes mysqldump to stop the slave SQL thread before the dump and restart it again
after.
原文地址:https://www.cnblogs.com/zengkefu/p/5690156.html