Failed to connect to localhost orientdb using jdbc

I am using OrientDB 2.1.9 and have created a graph graph database called "TimespentEvents".

When trying to connect with Java using the JDBC driver on the same computer with the URL "jdbc: orient: remote: localhost / TimespentEvents" and user / password admin / admin, the following exception occurs:

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] 

When changing the url in 'jdbc: orient: plocal: TimespentEvents' the error turns into:

 Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'TimespentEvents' because it does not exist in path: localhost/TimespentEvents 

Below are the jdbc drivers that I include in the classpath:

  • orientdb-JDBC-2.1.9.jar
  • orientdb-core-2.1.9.jar

Any help would be greatly appreciated.

Thanks and respect,

Setya

+5
source share
1 answer

Turns out I have to add 2 more jars:

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

Thanks and respect,

Setya

+4
source

Source: https://habr.com/ru/post/1240914/


All Articles