无法连接到Intellij中的H2数据库

时间:2019-12-20 17:55:03

标签: intellij-idea h2

我试图在Intellij IDEA中遵循本教程tutorial,但是当我尝试连接到h2数据库时,控制台向我抛出错误:

 Connection is broken: "java.net.ConnectException: Connection refused: connect: localhost:9092" 
        java.net.ConnectException: Connection refused: connect.

建立连接我需要做什么?

预先感谢

enter image description here

1 个答案:

答案 0 :(得分:0)

问题出在URL,它需要路径到您的应用程序: jdbc:h2:file:C:\ Users \ romul \ IdeaProjects \ raspberryAwards; MV_STORE = false; AUTO_SERVER = TRUE