Note, I'm using neo4jDesktop for WIndows. As other answers suggest, I tried :server change-password
command, but it didn't work.
:server change-password
prompts me for existing password and new password. I don't know the existing password, I thought it would be the default neo4j
, but that value didn't work (does anyone know why?1)
I was able to use the Neo4J browser (in which I was already authenticated?) and run the below ALTER USER
command. Note it does not ask for my current password. (It will error if you provide a new password that is <8 characters long). This command is described on the neo4j website for password recovery for admins
ALTER USER neo4j SET PASSWORD 'neo4j-password'
Note I did not disable authentication in order to run the above command, as suggested on the neo4j site (which they recommend you undo afterwards, see "post-recovery")
I know this answer is many years late, but I don't see another answer like it; I'm posting this here in case it helps other people like me, (i.e. if you don't know the current password)
1 Why was my default password neo4j
not working? Maybe I missed the step in Neo4j Desktop installation which prompts me to choose a new/non-default password?