H2 database not found, allow remote database creation

749 views
Skip to first unread message

Ruddy32

unread,
Apr 25, 2020, 7:39:40 AM4/25/20
to Quarkus Development mailing list
Hi,

While using quarkus-test-h2, running test display message "Database "mem:test" not found, either pre-create it or allow remote database creation".

H2 documentation advise to start h2 server with -ifNotExists and -tcpAllowOthers options. Overwriding H2DatabaseTestResource quarkus test resource to inject H2 options does not solve the problem.

The application is using following jdbc url: "%test.quarkus.datasource.jdbc.url=jdbc:h2:tcp://${DB_HOST_NAME}:${DB_HOST_PORT}/mem:${DB_NAME};db_close_delay=-1;init=create schema if not exists ${DB_SCHEMA}\\;set schema ${DB_SCHEMA}"

Is there any kind solution to solve the problem ?

Thx
Reply all
Reply to author
Forward
0 new messages