zoukankan      html  css  js  c++  java
  • mysqldump造成sql_thread停止

    利用从库备份期间,收到slave sql_thread stop的报警,检查状态如下:

    (1)show slave status输出

    Relay_Master_Log_File: mysql-bin.009188

    Slave_IO_Running: Yes
    Slave_SQL_Running: No

    (2)error log输出

    2017-12-13 10:35:14 61080 [Note] Error reading relay log event: slave SQL thread was killed
    2017-12-13 10:44:02 61080 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.009188' at position 85266734, relay log './relay-bin.017692' position: 85266897

    对应mysqldump手册检查备份脚本

    脚本包含--dump-slave=2 (备份带有注释的change master)

    参数解释中有一句话

    This option causes mysqldump to stop the slave SQL thread before the dump and restart it again after.

    结论:就是备份前stop slave,备份结束再start slave;

  • 相关阅读:
    react脚手架
    快速创建一个node后台管理系统
    vue脚手架结构及vue-router路由配置
    Spring 事务管理-只记录xml部分
    Spring-aspectJ
    Maven 自定义Maven插件
    JVM
    JVM
    Spring
    Digester
  • 原文地址:https://www.cnblogs.com/geek-ace/p/8038662.html
Copyright © 2011-2022 走看看