Database not found, and IFEXISTS=true, so we cant auto-create it

后端 未结 17 2986
不思量自难忘°
不思量自难忘° 2020-12-15 06:20

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

17条回答
  •  离开以前
    2020-12-15 07:11

    I also got this Error. You have to Configured 
    
    *application.properties*
    
        # temporary data storage
        spring.datasource.url = jdbc:h2:file:C:/data/test (Windows only)
        spring.h2.console.path=/h2
        server.port=8181
    
    You have to create Folder in C: Drive data/test
    
    Go To Browser:
    
        http://localhost:8181/h2
    
    Then URL:
    
        jdbc:h2:file:C:/data/test
    
    You Can See in this pic also: [1]
    
      [1]: https://i.stack.imgur.com/ExFNR.png
    
    You can see youtube Video
    
    https://youtu.be/yYWPuM8k8K4
    

提交回复
热议问题