1
我試圖從Python程序到的Neo4j 3.0數據庫訪問,但顯示以下錯誤:py2neo.database.status.Unauthorized在Neo4j的3.0.3
文件「C:\ Python27 \ LIB \ py2neo \數據庫\ http.py」,線路157,在獲取加薪未經授權(self.uri.string) py2neo.database.status.Unauthorized:http://localhost:7474/db/data/
已經有同一主題的帖子打開,但它的在2.2版本中。
我的代碼是:
authenticate("localhost:7474", "neo4j", "neo4j")
graph_db = Graph("http://localhost:7474/db/data/")
這是完全一樣的2.2版本,因爲它是在http://py2neo.org/v3/database.html規定。
我也試着做這樣的:
graph_db = Graph("http://localhost:7474/db/data/", user="neo4j", password="neo4j")
,但我得到了相同的結果。
有誰知道問題在哪裏?
謝謝先進。 。