In this post, am gonna explain two methods of resetting neo4j graph databases password. Method 1 involves, normal, traditional way of changing password and Method 2 is used, where the user forgot the password and there is no other way of changing the password, for this you might seek help from system admin.
Method 1: Change password method. this methods can be done from browser.
Method 2: Reset Password, this methods needs help of system admin.
Neo4j Change Password Method – 1.
Once your Neo4J is started please login from browser using ,<ne4j machine ip>:7474.
one you login, use the below command to reset password [Fig 1 – change password command].
:server change-password

Fig 1 – Change password command.
This will give Change password option if you are authenticated. Otherwise you will get “This is not available” message [Fig 2 – This is not available ]

Fig 2 – This is not available
If you are authenticated, you will prompt to change the password, enter the old and new password then click set password. [Fig 3 – Enter new password ]

Fig 3 – Enter new password
You have changed the password. Lets look into resetting the password.
Neo4j Reset Password Method -2.
This methods needs help of the system admin. This will work, if you have forgot the password.
As you ne4j system admin to remove auth file from <neo4j location>/data/dbms/authauth file location and restart the neo4j DB. [Fig 4 – Remove auth and restart neo4j ]
sudo rm -rf ./data/dbms/auth
sudo bash ./bin/neo4j restart
After restart, Open neo4j in browser and try login using default credentials, neo4j/neo4j . Soon after login, you will be prompted to enter new password. [Fig 5 Reset password]

Fig 5 – Reset password.
Successfully you have rest the neo4j password.
Happy hacking.
Thanks 🙂
This was very helpful
Hello Bhoopathi, can we reset password on ENT edition with Live data in the similar way having neo4j 3.5?