mysql错误处理之ERROR 1665 (HY000)_MySQL
程序员文章站
2024-02-09 20:15:28
...
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模式。
上一篇: PHP中的include和require
下一篇: 搞前端的,请问一个简单php有关问题
推荐阅读
-
mysql错误处理之ERROR 1665 (HY000)_MySQL
-
【MySQL案例】ERROR 1786 (HY000)_MySQL
-
ERROR 2002 (HY000): Can't connect to local MySQL ser
-
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)已解决
-
mysql ERROR 2002 (HY000): Can't connect to local_MySQL
-
IT忍者神龟之mysql远程连接:ERROR1130(HY000):Host'*.*
-
Mysql_Faq: ERROR 1396 (HY000): Operation CREATE USER failed for ‘username’@’host
-
Mysql_Faq: ERROR 1396 (HY000): Operation CREATE USER failed for ‘username’@’host
-
MySQL错误ERROR 2002 (HY000): Can't connect to local MySQL se
-
ERROR 126 (HY000): Incorrect key file for table '/tmp/#sql__MySQL