What is the default username and password for h2 when there's nothing explicit in JDBC?

后端 未结 7 978
你的背包
你的背包 2021-02-06 21:47

From a program, I created a H2 database without specifying any user or password in the JDBC URL.

Now I\'m trying to access that database with the Script tool. The doc sa

7条回答
  •  旧巷少年郎
    2021-02-06 22:40

    In case you got stuck with the default non-blank user when running the client, the full set of parameters will get you past that:

    java -cp \h2.jar org.h2.tools.Shell -url "jdbc:h2:file:" -driver "org.h2.Driver" -user "" -password ""
    

提交回复
热议问题