java - MySQL: Unknown system variable 'tx_read_only' -


i'm working on java swing-based application+ hibernate+mysql+spring. when test crud operations, don't have problems read, in insert statements system shows message:

unknown system variable `tx_read_only` 

i have last version of mysql

  • hibernate 4
  • java annotations

can tell me problem solve now?

just throwing rocks darkness, 1 possibility be:

  • variable tx_read_only introduced in mysql 5.6.5.
  • probably mysql version older that, connector/j tries use new variable anyway.
  • according release notes, support variable came in connector/j 5.1.23.

==> maybe version older 5.1.23 work, or bug fixed in version newer that.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -