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.
主要体现在LINUX下软件运行时出错,Python Web导致,同一个项目在Windows下没有问题
解决办法:


出错时binlog_format = statement;
解决MySQL二进制日志错误
本文介绍了一个关于MySQL在Linux环境下运行时遇到的二进制日志错误(ERROR 1665),该问题在Windows环境下不会出现。文章详细解释了错误原因在于binlog_format设置为statement时,某些存储引擎如InnoDB在特定事务隔离级别下只能进行行级日志记录,并提供了解决方案。
165

被折叠的 条评论
为什么被折叠?



