I am getting error after opening the h2 database console. I enter database name but it is showing database not found error:
Database "C:/Users/Barlekar/onlineshoppings" not found, and IFEXISTS=true, so we cant auto-create it [90146-199] 90146/90146 (Help)
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database "C:/Users/Barlekar/onlineshoppings" not found, and IFEXISTS=true, so we cant auto-create it [90146-199]
If you are dealing with the Spring Boot project, please change the JDBC URL jdbc:h2:~/test
to jdbc:h2:mem:testdb
in the login page, which is the default URL configured by Spring Boot.
Use a pre-2019 version of the H2
database dependency that auto-creates the database every time you run your standalone application. For example version 1.4.193
. Your pom.xml
should include this dependency:
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.193</version>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With