title: Orientdb Cant open Database from Java
body: <p>I created a database out of the orientdb console:</p>
  
  <pre><code>create database plocal:/C:/Development/orientdb/databases/testdb root root plocal graph
  </code></pre>
  
  <p>I started the server to make sure my database was created successfully. I opened
  the webinterface:</p>
  
  <pre><code>localhost:2480
  </code></pre>
  
  <p>And i logged in into testdb using <code>root</code> as user and <code>root</code> as password. Everything 
  worked fine. But when i now want to connect to my database from Java-Code:</p>
  
  <pre><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();
          }
      }
  </code></pre>
  
  <p>I get the following exception:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>Why he is telling me that username or password is wrong when its not?</p>