gpt4 book ai didi

orientdb - 无法使用 jdbc 连接到 localhost orientdb

转载 作者:行者123 更新时间:2023-12-04 19:49:23 27 4
gpt4 key购买 nike

我正在使用 OrientDB 2.1.9 并创建了名为“TimespentEvents”的 plocal 图数据库。

当尝试在同一台机器上使用 JDBC 驱动程序从 Java 连接 URL 'jdbc:orient:remote:localhost/TimespentEvents' 和用户/密码 admin/admin 时,我遇到以下异常:

Caused by: com.orientechnologies.orient.core.exception.OConfigurationException: Error on opening database: the engine 'remote' was not found. URL was: remote:localhost/TimespentEvents. Registered engines are: [plocal, memory]

将 URL 更改为 'jdbc:orient:plocal:TimespentEvents' 时,错误变为:
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'TimespentEvents' because it does not exist in path: localhost/TimespentEvents

下面是我在类路径中包含的 jdbc 驱动程序 jars:
  • orientdb-jdbc-2.1.9.jar
  • orientdb-core-2.1.9.jar

  • 任何帮助将不胜感激。

    感谢和问候,

    塞佳

    最佳答案

    原来我必须包括 2 个额外的 jar :

  • orientdb-enterprise-2.1.9.jar
  • orientdb-client-2.1.9.jar

  • 感谢和问候,

    塞佳

    关于orientdb - 无法使用 jdbc 连接到 localhost orientdb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34875654/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com