How to programmatically change the default password for a database that was just created.

304 views
Skip to first unread message

Bill Nicholson

unread,
May 15, 2017, 10:27:36 PM5/15/17
to Neo4j
I programmatically created a Neo4j DB now I need to change the default PW that goes with the Neo4j account. What's the secret?

// This works...
graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( new File("c:\\Temp\\foo"));

Can I use the graphDB object, above, to change the password? Is there another way?

Thanks in advance!

Michael Hunger

unread,
May 16, 2017, 2:39:53 AM5/16/17
to ne...@googlegroups.com
The embedded database doesn't have auth.

For the server you can use `bin/neo4j-admin --set-initial-password "password"`

Michael

--
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 neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bill Nicholson

unread,
May 16, 2017, 10:07:21 AM5/16/17
to Neo4j
I don't have neo4j-admin in the C:\Program Files\Neo4j CE 3.2.0\bin folder. Do I need to download it?


On Tuesday, May 16, 2017 at 2:39:53 AM UTC-4, Michael Hunger wrote:
The embedded database doesn't have auth.

For the server you can use `bin/neo4j-admin --set-initial-password "password"`

Michael
On Tue, May 16, 2017 at 4:27 AM, Bill Nicholson <delmerwilli...@gmail.com> wrote:
I programmatically created a Neo4j DB now I need to change the default PW that goes with the Neo4j account. What's the secret?

// This works...
graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( new File("c:\\Temp\\foo"));

Can I use the graphDB object, above, to change the password? Is there another way?

Thanks in advance!

--
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 neo4j+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages