H2 db- Web控制台中的打开示例文件

发布于 2025-02-03 05:44:45 字数 2005 浏览 1 评论 0原文

我正在尝试打开我在Web控制台中使用示例代码制作的文件 代码: htttps://h2database.com/html/html/mvstore.html/mvstore.html#example_cpample_code_code_code

运行网络 https:////h2database.com/h2database.com/html/html/tml/tutororial.html/trorial

efor Web控制台: 数据库“/recript/path/to/file”找不到,要么预先创建它或允许远程数据库创建(不建议在安全环境中推荐)[90149-212] 90149/90149(help)

org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database " ...path... " not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-212]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:678)
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:477)
    at org.h2.message.DbException.get(DbException.java:223)
    at org.h2.message.DbException.get(DbException.java:199)
    at org.h2.engine.Engine.throwNotFound(Engine.java:189)
    at org.h2.engine.Engine.openSession(Engine.java:72)
    at org.h2.engine.Engine.openSession(Engine.java:222)
    at org.h2.engine.Engine.createSession(Engine.java:201)
    at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338)
    at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122)
    at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:288)
    at org.h2.server.web.WebServer.getConnection(WebServer.java:808)
    at org.h2.server.web.WebApp.login(WebApp.java:1033)
    at org.h2.server.web.WebApp.process(WebApp.java:226)
    at org.h2.server.web.WebApp.processRequest(WebApp.java:176)
    at org.h2.server.web.WebThread.process(WebThread.java:153)
    at org.h2.server.web.WebThread.run(WebThread.java:102)
    at java.base/java.lang.Thread.run(Thread.java:831)

文件确实存在,我可以通过Java代码读取它,但不能使用Web控制台阅读。

I am trying to open file I made from example code in a web console
code:
https://h2database.com/html/mvstore.html#example_code

running web console https://h2database.com/html/tutorial.html#tutorial_starting_h2_console

error in the web console:
Database "/correct/path/to/file" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-212] 90149/90149 (Help)

org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database " ...path... " not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-212]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:678)
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:477)
    at org.h2.message.DbException.get(DbException.java:223)
    at org.h2.message.DbException.get(DbException.java:199)
    at org.h2.engine.Engine.throwNotFound(Engine.java:189)
    at org.h2.engine.Engine.openSession(Engine.java:72)
    at org.h2.engine.Engine.openSession(Engine.java:222)
    at org.h2.engine.Engine.createSession(Engine.java:201)
    at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338)
    at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122)
    at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:288)
    at org.h2.server.web.WebServer.getConnection(WebServer.java:808)
    at org.h2.server.web.WebApp.login(WebApp.java:1033)
    at org.h2.server.web.WebApp.process(WebApp.java:226)
    at org.h2.server.web.WebApp.processRequest(WebApp.java:176)
    at org.h2.server.web.WebThread.process(WebThread.java:153)
    at org.h2.server.web.WebThread.run(WebThread.java:102)
    at java.base/java.lang.Thread.run(Thread.java:831)

The file does exist and I can read it via Java code, but not with web console.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文