Reputation: 205
I just started to learn Neo4j.However, I come across a problem when connecting to Neo4j at the very beginning. As the image shown, it says "The client is unauthorized due to authentication failure." Any solutions?
Upvotes: 16
Views: 27692
Reputation: 508
I had the same error. After trying many things, I solved it by creating a new user with admin and PUBLIC roles from browser. Then used this username and password in my application:
spring.neo4j.uri=bolt://localhost:7687
spring.neo4j.authentication.username=myuser
spring.neo4j.authentication.password=mypass
I attach the images:
--- then ---
--- then ---
Upvotes: 0
Reputation: 159
For the command line, there is same situation. Give username and pass as argument. Like:
-u neo4j -p neo4j
Upvotes: 6
Reputation: 718
Since the accepted answer made no sense to me, here's my answer. Im using Neo4J Community Server 4.4.8 and when you download it, you get a folder that looks something like this
Look into the Neo4J Community Server Folder/data
and the folder looks like this and DELETE the inside of databases and transactions
DELETE this in data/transactions
NOTES
localhost:7474
will be reset with USERNAME = neo4j
and PASSWORD = neo4j
Upvotes: 3