在 Ubuntu 16.04.3 桌面上,我刚刚卸载并重新安装了 Neo4j。我还没有开始。但是当我尝试设置初始密码时...
sudo neo4j-admin set-initial-password 1234
...我得到这个输出:
command failed: initial password was not set because live Neo4j-users were detected.
怎么可能?如何设置初始密码?
最佳答案
我从 Neo4J 版本 3.3.2 切换到 3.2.1,然后执行以下命令来更改我的密码:
curl -H "Content-Type: application/json" -X POST -d '{"password":"WHATEVER THE PASSWORD IS"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password
Ref
关于Neo4J:命令失败:未设置初始密码,因为检测到实时 Neo4j 用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47530154/