Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4J: command failed: initial password was not set because live Neo4j-users were detected

On Ubuntu 16.04.3 desktop, I've just uninstalled and reinstalled Neo4j. I haven't started it yet. But when I try to set the initial password ...

sudo neo4j-admin set-initial-password 1234

... I get this output:

command failed: initial password was not set because live Neo4j-users were detected.

How can that be? What can I do to set the initial password?

like image 520
James Newton Avatar asked Nov 28 '17 11:11

James Newton


1 Answers

I switched from Neo4J version 3.3.2 to 3.2.1 and then executed following command to change my password:

curl -H "Content-Type: application/json" -X POST -d '{"password":"WHATEVER THE PASSWORD IS"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password

Ref

like image 134
Vishrant Avatar answered Sep 18 '22 13:09

Vishrant