I have followed tutorials and checked StackOverflow for solutions to this, but found nothing that works. What should I do to make H2 file-based without getting errors? Here is my property file:
spring.h2.console.enabled=true
spring.jpa.database=h2
spring.datasource.url=jdbc:h2:file:~/test
I then get
org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password [28000-199]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:459) ~[h2-1.4.199.jar:1.4.199]
I don't know why I have to add user name and password when this was not required without the file-based URL. I have tried to add the user name and password, but it results in other errors.