Luanne, In which Jar "Properties" Class is present? -Sukaant Chaudhary <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
On Wed, Jan 21, 2015 at 10:26 AM, Luanne Coutinho <[email protected] > wrote: > If you're using the JDBC driver then you'll get a java.sql.Connection, not > a GraphDatabaseService. > > Send your username/password via properties: > > Properties connectionProps = new Properties(); > connectionProps.put("user", username); > connectionProps.put("password", password); > > //For embedded > Connection conn = DriverManager.getConnection("jdbc:neo4j:file:" + dbPath, > connectionProps); > > //For server > Connection conn = DriverManager.getConnection("jdbc:neo4j://" + host + ":" > + port + "/", connectionProps); > > > > Regards > Luanne > > > On Wed, Jan 21, 2015 at 10:11 AM, Sukaant Chaudhary < > [email protected]> wrote: > >> What changes I need to make in the following configuration to put >> username and password: >> >> GraphDatabaseService gdb = new >> GraphDatabaseFactory().newEmbeddedDatabase("jdbc:neo4j://"+"neo4j.db.path"); >> >> Please help. >> >> -Sukaant Chaudhary >> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
