New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General error: "The write format 1 is smaller than the supported format 2 [2.0.202/5]" [50000-202] HY000/50000 #3214
Comments
|
It looks like you are trying to open 1.4.200 database file with 2.0202 jar. Please re-create your database from SQL script using latest version. Springe app is using in-memory database, therefore works fine |
|
Maybe you create a database by h2 V1.4, and open it by h2 V2.0, you can try delete the db file in your disk。 |
|
I have the same problem. What is the best way to migrate an existing 1.4-database to the new version? I want to keep all my data of course. |
|
The best, in fact the only way, is to export your database into a SQL script using version 1.4.200 (or whatever version you were using), then create a new database using version 2.0.202 and run that SQL script in there. |
|
The only supported way was always the same: H2 2.0 also has a helper method that downloads an old version and performs all operations by itself. But due to large amount of incompatible changes between 1.4.200 and 2.0.202 the intermediate script may need to be edited. |
|
"org.h2.tools.Upgrade.upgrade()" did not work. There were several errors. But backup and restore worked. |
|
I have a similar issue for my in-memory H2 database when I try to upgrade from 1.4.200 to 2.0.202. So, the issue is unlikely due to old data format. I use spring jdbc to connect to in-memory H2. Here is the error: Here is a snippet from my Spring config file: |
It is a regular persistent database. |
|
I apologize, the original entry in the config file was: Does it still imply it is a persistent DB? |
|
Thank you @katzyn . I discovered "target" directory in my home directory (I did not realize that ~ would map to $HOME till your comment). So, I deleted ~/target, updated the H2 version in my pom.xml, and re-ran. That worked! |
When I click caused By I get github error 404 about this error.
Log:
How to reproduce:
try open this database: link
I think it could be the corrupted file, but in spring application it works fine.
spring version 2.6.0
aplication.propertiers
The text was updated successfully, but these errors were encountered: