Home > Database > Mysql Tutorial > body text

mysql错误处理之ERROR 1665 (HY000)_MySQL

WBOY
Release: 2016-05-31 08:49:13
Original
877 people have browsed it

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.
Copy after login

【报错原因】

innodb的事务隔离级别是read commited或者read uncommited模式时,binlog不可以使用statement模式。

【解决方法】

不重启mysql实例的解决方法:

set global binlog_format=mixed
Copy after login

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!