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

后端 未结 7 1056
你的背包
你的背包 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条回答
  •  萌比男神i
    2021-02-06 22:43

    try this:

    java -cp h2*.jar org.h2.tools.Script -user "sa" -password "" -url "jdbc:h2:path_to_your_db_file"
    

提交回复
热议问题