Java 默认事务级别read committed对binlog_format的需求
来源:互联网 发布:蔡澜淘宝店 编辑:程序博客网 时间:2024/05/18 18:19
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;
问题解决!
或:
mysql> SET SESSION binlog_format = 'ROW';
mysql> SET GLOBAL binlog_format = 'ROW';
注意: 若手动修改linux下面/etc/my.cnf : binlog_format = row , 需要在重启mysql是注意配置是否生效
- 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的默认事务隔离级别
- LeetCode--Remove Duplicates from Sorted List II
- [转载]Android入门:隐式Intent
- 虚拟机CentOS7最小化安装下源码编译搭建LAMP环境之二: ————Apache编译安装
- Android学习笔记常见对话框AlertDialog
- Android源码分析-消息队列和Looper
- Java 默认事务级别read committed对binlog_format的需求
- Python模块——struct(字节流,组包拆包实现)
- 2015年电商行业五大趋势
- IE打开网页默认为英文
- Android自定义控件(组合模式)TopBar
- 让jsp引擎不检测jsp页面是否发送修改
- mysql中如何取得通过insert插入或者update修改之后的id
- codeforce B. Misha and Changing Handles
- scala中的List