mysql tx read only,MySQL:未知的系统变量'tx_read_only'

I'm working on a Java Swing-based application+ Hibernate+Mysql+Spring.

When I test CRUD operations, I don't have problems with read, but in insert statements system shows the message:

Unknown system variable `tx_read_only`

I have the last version of MySQl

Hibernate 4

Java annotations

Can you tell me which is the problem to solve now?

解决方案

Just throwing rocks to the darkness, but one possibility could be:

Variable tx_read_only was introduced in MySQL 5.6.5.

Probably MySQL version is older than that, but Connector/J tries to use new variable anyway.

According release notes, support for this variable came in Connector/J 5.1.23.

==> maybe version older than 5.1.23 will work, or this is the bug that is fixed in version newer than that.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值