【问题标题】:Failed to connect to localhost orientdb using jdbc使用 jdbc 连接到 localhost orientdb 失败
【发布时间】:2016-01-19 11:30:11
【问题描述】:

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

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

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 驱动程序 jar:

  • orientdb-jdbc-2.1.9.jar
  • orientdb-core-2.1.9.jar

任何帮助将不胜感激。

感谢和问候,

塞提亚

【问题讨论】:

  • 你能发布你的代码吗?

标签: orientdb


【解决方案1】:

原来我必须添加 2 个额外的罐子:

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

感谢和问候,

塞提亚

【讨论】:

  • 包括 orientdb-client-*.jar 对我来说已经足够了。
猜你喜欢
  • 1970-01-01
  • 2019-08-01
  • 1970-01-01
  • 2020-01-21
  • 2012-09-18
  • 2018-06-22
  • 1970-01-01
  • 2015-06-16
  • 1970-01-01
相关资源
最近更新 更多