Why are added tables from Java not visible when I open the H2 console?

后端 未结 2 781
故里飘歌
故里飘歌 2021-01-19 18:43

I use an H2 embedded database in Java, and after creating the database and adding some tables and data, it gets saved as a file in a directorey of my computer.

But wh

2条回答
  •  一生所求
    2021-01-19 19:16

    You have used a different database URL in the H2 Console (not jdbc:h2:file://C:/Temp/H2/ourDB). You need to use the same one, otherwise it's a different database.

提交回复
热议问题