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/Barlek
I have faced this issue and resolved in the following way
To use H2 Database - Your application should be running in JDK Environment, not JRE Environment , to change please use below steps :
jdbc:h2:~/test, it should actually match with the spring boot application properties
spring.datasource.url=jdbc:h2:mem:testdb so replace the url in the login console and click on connect I have used [Ivan Xue][2] provided steps here -> https://stackoverflow.com/a/56539107