问题1
py2neo.errors.ConnectionUnavailable: Connection has been closed
问题2
neo4j Failed authentication attempt for ‘meter’ from 127.0.0.1
问题3
py2neo.errors,ClientError: [Security.Unauthorized] Invalid username or password.
作者:xiao黄
博客地址:https://blog.csdn.net/Python_Matlab?type=blog
为解决上述问题,博主通过各种方式,寻求帮助,最终得到解决。
本人的环境为Python3.7
Neo4j Desktop 1.2.4
py2neo 2021.2.3
- 对于问题1,在网上找的方法,并不能解决,相关办法有:将单引号改为双引号;将
graph = Graph("http://localhost:7474",user= "meter",password = "123456")
改为graph = Graph("http://localhost:7474",auth=( "meter","123456"))
;或者在后面添加name=“neo4j”,如:graph = Graph("http://localhost:7474",auth=( "meter","123456