How to change neo4j database password

I am trying to change the default user password for the database. I tried this:

$ curl -H "Content-Type: application/json" \
    -X POST \
    -d '{"password":"password"}' \
    -u neo4j:neo4j \
    http://localhost:7474/user/neo4j/password"

but this does not allow me and gave me this error:

Invalid input 'u': expected 'r / R' or 'a / A' (row 1, column 2 (offset: 1)) "curl -H" Content-Type: application / json "-X POST -d '{ "password": "qazWSXEDCRFV! 1 "} '-u neo4j: neo4j http: // localhost: 7474 / user / neo4j / password " "^

How to fix this problem?

+4
source share
1 answer

curl -H "Content-Type: application/json" -XPOST -d '{"password":"new password"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password

just worked for me (Neo4j 3.0.x)

+11
source

Source: https://habr.com/ru/post/1668175/


All Articles