mir eine Datenbank aus der Orientdb Konsole erstellt:Orientdb Cant offene Datenbank von Java
create database plocal:/C:/Development/orientdb/databases/testdb root root plocal graph
begann ich den Server sicher erfolgreich erstellt wurde meine Datenbank zu machen. Ich öffnete das Webinterface:
localhost:2480
Und ich angemeldet in testdb root
als Benutzer und root
als Passwort. Alles hat gut funktioniert. Aber wenn ich jetzt zu meiner Datenbank verbinden möge von 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();
}
}
Ich erhalte die folgende Ausnahme:
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)
Warum er sagt mir, dass Benutzername oder Passwort ist falsch, wenn es nicht?