Hibernate Study Notes (2) and hibernate Study Notes
I. I wrote a small demo and a junit when I saw hibernate yesterday. I waited for the green color to see the red color. What is the problem? I carefully checked the error:
Caused by: java. SQL. SQLException: cocould not retrieve transation read-only status server
Caused by: java. SQL. SQLException: Unknown system variable 'tx _ read_only'
First, the read-only service thought the configuration was wrong. I had to check the configuration file, but there was no problem, but it was always such an error. If I didn't know what to do, I 'd like to talk to du Niang,
In this case, du Niang may be talking about the version of the driver package connecting to the database. Just as there are several versions of the driver package on the computer, try another one, then other problems will occur successfully. Wait a while, at least none of the above problems will occur,
Because I used a mobile phone to access the Internet, I didn't see that much. I checked it again today. Other people have encountered this problem. There are other ways to do this, as follows: