stworzyłem bazę danych z konsoli orientdb:Orientdb Cant open Database z Java
create database plocal:/C:/Development/orientdb/databases/testdb root root plocal graph
zacząłem serwera, aby upewnić się moja baza danych została utworzona pomyślnie. Otworzyłem Serwer WWW:
localhost:2480
A ja zalogowany do bazą danych TESTDB użyciu root
jako użytkownik i root
jako hasło. Wszystko działało dobrze, . Ale kiedy teraz chce połączyć się z bazą danych z Java-Code:
OrientGraph graph = null;
try {
graph = new OrientGraph("plocal:C:/Development/orientdb/databases/testdb", "root", "root");
System.out.println("success");
} catch(OException e) {
System.out.println("no success - " + e.getMessage());
e.printStackTrace();
} finally {
if(graph != null) {
graph.shutdown();
}
}
otrzymuję następujący wyjątek:
Exception in thread "main" com.orientechnologies.orient.core.exception.OSecurityAccessException: User or password not valid for database: 'testdb'
at com.orientechnologies.orient.core.metadata.security.OSecurityShared.authenticate(OSecurityShared.java:150)
at com.orientechnologies.orient.core.metadata.security.OSecurityProxy.authenticate(OSecurityProxy.java:83)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:128)
at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:49)
at com.orientechnologies.orient.core.db.graph.OGraphDatabase.open(OGraphDatabase.java:92)
at de.hof.iisys.relationExtraction.freebase.tinkerpop.DAO.openGraph(DAO.java:30)
at de.hof.iisys.relationExtraction.freebase.main.Main.main(Main.java:44)
Dlaczego on mówi mi, że nazwa użytkownika lub hasło jest nieprawidłowe, gdy jej nie?