H2 database error: Database may be already in use: “Locked by another process”

后端 未结 13 1136
时光取名叫无心
时光取名叫无心 2020-12-12 23:52

I am trying to use the H2 database from a Java application.

I created the database and its tables through the H2 Console and then I try to connect from Java using <

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 00:23

    Ran into a similar issue the solution for me was to run fuser -k 'filename.db' on the file that had a lock associated with it.

    Hope this helps!

提交回复
热议问题