Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-20-2020 03:45 AM
Is it feasible to connect to multiple neo4j dbs using python client? I am using Neo4j v 4.1.1 Enterprise edition with pip install neo4j ==4.0.2.I have created multiple databases from the browser end http://localhost:7474/browser/.
But whatever python operations (using bolt or using neo4j)I perform,it is working on default neo4j database and not accessing other databases.
I have been using https://pypi.org/project/neo4j/ example codes.
I have checked this post too Cannot create multiple databases through python client(Neo4j 4.0).
Can it be confirmed that it is not possible for python api to connect to multiple neo4j databases running at the same port of the same neo4j enterprise edition instance?
Solved! Go to Solution.
07-20-2020 07:50 PM
Thanks for responding @jpek-m.However,one of my colleagues pointed me to the below link yesterday.
And it is working for me . .I have used neo4j protocol,but it may work with bolt as well.
Below is the snippet.
driver = GraphDatabase.driver("bolt://0.0.0.0:7687/", auth=('xx', "xx"), encrypted=False)
session = driver.session(database='Db1')
07-20-2020 08:36 AM
Now the manual https://neo4j.com/docs/migration-guide/4.0/upgrade-driver/#upgrade-driver-releases says, that "The Neo4j 4.0 Python and Go drivers are still under construction". We'll wait
07-20-2020 07:50 PM
Thanks for responding @jpek-m.However,one of my colleagues pointed me to the below link yesterday.
And it is working for me . .I have used neo4j protocol,but it may work with bolt as well.
Below is the snippet.
driver = GraphDatabase.driver("bolt://0.0.0.0:7687/", auth=('xx', "xx"), encrypted=False)
session = driver.session(database='Db1')
10-20-2022 12:43 AM
With this approach, how do you run projections using sessions? session.run('''my query''') worked for some queries but not for projections, so I am wondering how that is done.
All the sessions of the conference are now available online