java 默认事务级别read committed对binlog_format的需求
来源:互联网 发布:物资采购软件 编辑:程序博客网 时间:2024/05/18 16:58
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.
tomcat抛异常如上!
提示是事务级别在read committed和read uncommitted的时候
binlog必须设置为row格式
这个是java设置的一个局限性,java默认的事务级别是read committed,而mysql默认设置的binlog_format=statement。
将binlog_format设置为mixed
set global binlog_format=mixed;
过段时间,异常仍在!
设置成row
set global binlog_format=row;
问题解决!
本文出自 “原下” 博客,请务必保留此出处http://qdjalone.blog.51cto.com/1222376/1338760
或:
mysql> SET SESSION binlog_format = 'ROW';
mysql> SET GLOBAL binlog_format = 'ROW';
注意: 若手动修改linux下面/etc/my.cnf : binlog_format = row , 需要在重启mysql是注意配置是否生效,本人测试比较难生效。
0 0
- java 默认事务级别read committed对binlog_format的需求
- Java 默认事务级别read committed对binlog_format的需求
- java默认事务级别read committed对binlog_format的需求
- mysql binlog格式与事务级别read committed的关系
- tx_isolation=READ-COMMITTED +binlog_format=STATEMENT产生的问题
- 数据库隔离级别---MySQL的默认隔离级别就是Repeatable,Oracle默认Read committed,最高级别Serializable
- Mysql事务和隔离级别(read committed, repeatable read)
- 对read committed隔离级别的全新认识:select语句能读取到,未来被其他事务修改过的数据???
- 对SQL Server中read committed隔离级别的全新认识 S X锁
- Mysql中事务隔离级别与binlog_format的一点理解
- Mysql的READ COMMITTED隔离级别的问题
- informix隔离级别:committed read last committed与committed read介绍
- MySQL的REPEATABLE READ事务隔离级别
- mysql事务之提交读(Read Committed)
- 使用Read Committed级别的隔离机制会出现的问题
- 在eXtremeDB中,MVCC模式Read Committed隔离级别的问题
- Read Committed与Read committed snapshot的区别以及Read Committed Snapshot与Sanpshot的区别
- 更改MySQL的默认事务隔离级别
- hdu 4303 树形DP
- Andriod ListView implement
- UIButton 小技巧setTitleEdgeInsets
- 关于代码内外部质量提升的一些看法
- H.264码流介绍
- java 默认事务级别read committed对binlog_format的需求
- Android中图片Bitmap的缩放
- 数组存放
- 结合到具体工作,可能有场景需要考虑
- arm ldm stm指令解析
- ios ViewController 页面跳转
- Java 虚拟机(JVM)介绍
- 拿到赛季第五冠和职业生涯排名赛
- 冒牌排序法