zoukankan      html  css  js  c++  java
  • Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider raising the value of t

    今天遇到mysql报错:

    Slave_IO_Running: Yes
    Slave_SQL_Running: No
    Replicate_Do_DB:
    Replicate_Ignore_DB:
    Replicate_Do_Table:
    Replicate_Ignore_Table:
    Replicate_Wild_Do_Table:
    Replicate_Wild_Ignore_Table:
    Last_Errno: 1205
    Last_Error: Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider raising the value of the slave_transaction_retries variable.
    Skip_Counter: 0
    Exec_Master_Log_Pos: 204441882
    Relay_Log_Space: 162909204
    Until_Condition: None
    Until_Log_File:
    Until_Log_Pos: 0
    Master_SSL_Allowed: No
    Master_SSL_CA_File:
    Master_SSL_CA_Path:
    Master_SSL_Cert:
    Master_SSL_Cipher:
    Master_SSL_Key:
    Seconds_Behind_Master: NULL
    Master_SSL_Verify_Server_Cert: No
    Last_IO_Errno: 0
    Last_IO_Error:
    Last_SQL_Errno: 1205
    Last_SQL_Error: Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider raising the value of the slave_transaction_retries variable.
    Replicate_Ignore_Server_Ids:
    Master_Server_Id: 2

    error.log

    2018-07-05T02:18:00.648716Z 1752962 [ERROR] Slave SQL for channel '': Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider raising the value of the slave_transaction
    _retries variable. Error_code: 12052018-07-05T02:18:00.648741Z 1752962 [Warning] Slave: Lock wait timeout exceeded; try restarting transaction Error_code: 1205
    2018-07-05T02:18:00.648746Z 1752962 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'mysql2-bi
    n.000242' position 204441882

    解决办法:

    start slave;

  • 相关阅读:
    括号匹配(有点复杂,因为它讲得详细)
    A+B/A*B求A和B
    构造哈夫曼树
    用栈实现进制转换
    实现二叉树各种基本运算的算法
    十六进制加法
    求二叉树中叶子结点到根结点的路径
    SilverLight4常见问题及解决办法
    Silverlight中自定义控件
    Silverlight发布时的优化工作
  • 原文地址:https://www.cnblogs.com/yangxiaochu/p/9269377.html
Copyright © 2011-2022 走看看