ITPub博客

首页 > IT职业 > IT图书 > mysql错误处理之ERROR 1665 (HY000)

mysql错误处理之ERROR 1665 (HY000)

IT图书 作者:matador 时间:2021-09-09 09:32:09 0 删除 编辑

ERROR 1665 (HY000)

【环境描述】

msyql5.6.14

【报错信息】

执行SQL语句的时候报错:

?

1 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实例的解决方法:

?

1 set global binlog_format=mixed

重新建立的会话session中binlog format会变为mixed模式。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3589/viewspace-2804388/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-14

  • 博文量
    94
  • 访问量
    1104