2016-09-19 3 views
1

Ich habe von einem Python-Programm zur Datenbank Neo4j 3.0 für den Zugriff versucht, aber der folgende Fehler wird angezeigt:in Neo4j py2neo.database.status.Unauthorized 3.0.3

Datei „C: \ Python27 \ lib \ py2neo \ Datenbank \ http.py“, Linie 157, in Unauthorized get raise (self.uri.string) py2neo.database.status.Unauthorized: http://localhost:7474/db/data/

es gibt bereits einen Beitrag zum gleichen Thema geöffnet, aber es ist in Version 2.2.

Mein Code ist:

authenticate("localhost:7474", "neo4j", "neo4j") 
graph_db = Graph("http://localhost:7474/db/data/") 

, die genau das gleiche ist wie in Version 2.2, wie es in http://py2neo.org/v3/database.html angegeben ist.

Ich habe auch versucht, es so zu tun:

graph_db = Graph("http://localhost:7474/db/data/", user="neo4j",  password="neo4j") 

Aber ich das gleiche Ergebnis.

Weiß jemand wo ist das Problem?

Danke in fortgeschrittenem. .

Antwort

3

Zugriff auf die Datenbank über das Web-Interface (http://localhost:7474/browser/), haben Sie in ein neues Passwort beim ersten Protokoll setzen

Dann sollte diese Arbeit:

from py2neo 
g = Graph('http://localhost:7474/db/data', user='neo4j', password='new_password') 
Verwandte Themen