When

Intelij 에서 데이터 소스로 H2DB 연결을 시도할때 아래 에러 발생

The write format 1 is smaller than the supported format 2

Why

IDE툴에서 제공하는 H2 버전으로 이전버전으로 생성했던 H2DB를 열려고 할때 버전이 일치하지 않아 발생하는 에러이다.

How

방법은 두가지가 있다.

방법 1

  • pom.xml에서 H2버젼을 데이터소스에서 설정한 버전으로 일치시키는 방법
		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<version>2.1.210</version>
			<scope>runtime</scope>
		</dependency>

방법 2

  • IDE의 데이터소스 드라이버 버젼을 pom.xml 에 명시된 버전과 일치시킨다.

XJ20P


Ref: https://stackoverflow.com/questions/71830365/error-in-intelij-h2-config-the-write-format-1-is-smaller-than-the-supported-form