cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How to select database other than the default in py2neo

We have several databases in our system:

py2neo uses the one that has been set as the default. How can we access any of the other databases?

1 ACCEPTED SOLUTION

webtic
Graph Fellow

Make sure you are using the recent v5 version of py2neo.
Selecting the database can be done via de Graph() instance where you can select the database via the name parameter.

https://py2neo.org/v5/database.html#the-graph

View solution in original post

3 REPLIES 3

Hello @pwrose.ucsd

I think this could help you:
https://py2neo.org/2.0/essentials.html#authentication

Regards,
Cobra

webtic
Graph Fellow

Make sure you are using the recent v5 version of py2neo.
Selecting the database can be done via de Graph() instance where you can select the database via the name parameter.

https://py2neo.org/v5/database.html#the-graph

Thanks, @Cobra and @webtic. The key was to use the prerelease version of py2neo v5 to get this to work.