zoukankan      html  css  js  c++  java
  • 解决 "Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"

    "Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction."


    To solve this issue, set binlog_format as mixed:


    FLUSH TABLES WITH READ LOCK;

    FLUSH LOGS; 

    SET GLOBAL binlog_format = 'MIXED'; 

    FLUSH LOGS; 

    UNLOCK TABLES;

    奇怪的是,本地直接执行的代码没有这个问题, 放到django-celery中去就报这个错误

  • 相关阅读:
    作业11图
    作业11
    作业10
    总结一
    物联网相关知识
    第十二次作业
    附加题4
    第十一次作业
    附加题3
    第十次作业
  • 原文地址:https://www.cnblogs.com/yeyong/p/4644801.html
Copyright © 2011-2022 走看看