博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mariadb BINLOG_FORMAT = STATEMENT 异常
阅读量:4947 次
发布时间:2019-06-11

本文共 516 字,大约阅读时间需要 1 分钟。

当在mariadb中插入数据是报 InnoDB is limited to row-logging 异常:

java.sql.SQLException: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.

 

解决方法

 STOP SLAVE;

 

SET GLOBAL binlog_format=MIXED;

 

 START SLAVE;

 

要想永久性不用敲sql执行,可以更改my.cnf

在mysqld中加入

binlog_format=mixed 

 

转载于:https://www.cnblogs.com/xjh713/p/6593184.html

你可能感兴趣的文章