h2 (embedded mode ) database files problem

前端 未结 4 1857
刺人心
刺人心 2020-12-03 14:47

There is a h2-database file in my src directory (Java, Eclipse): h2test.db

The problem:

  • starting the h2.jar from the command line (and thus the h2 b

4条回答
  •  隐瞒了意图╮
    2020-12-03 15:13

    Also there can be a problem if you use some special parameters in your JDBC url, the database file name can differ for various cases.

    In my case, I had two URLs:

    • jdbc:h2:~/XXX;MVCC=FALSE;MV_STORE=FALSE
    • jdbc:h2:~/XXX

    This first case created XXX.h2.db file, the second one XXX.mv.db, beware.

提交回复
热议问题