程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> 【MySQL案例】ERROR1665(HY000)

【MySQL案例】ERROR1665(HY000)

編輯:MySQL綜合教程

1.1.1. ERROR 1665 (HY000)

【環境描述】

msyql5.6.14

【報錯信息】

執行SQL語句的時候報錯:

ERROR 1665 (HY000): Cannot executestatement: impossible to write to binary log since BINLOG_FORMAT = STATEMENTand at least one table uses a storage engine limited to row-based logging.InnoDB is limited to row-logging when transaction isolation level is READCOMMITTED or READ UNCOMMITTED.

【報錯原因】

innodb的事務隔離級別是read commited或者read uncommited模式時,binlog不可以使用statement模式。

【解決方法】

不重啟mysql實例的解決方法:

set global binlog_format=mixed

重新建立的會話session中binlog format會變為mixed模式。

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved