Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Databases in neo4j using py2neo

Is it possible to create multiple databases or instances in neo4j, similar to the way one can create multiple databases in mysql? I found the commentary at the link below, but despite the promising title, it did not seem to answer my question. I am running the community version of neo4j, version 1.9.5 on a Mac with py2neo REST interface.

For additional context, I might want to create one database (or graph instance) for mapping nodes and relationships in a work email/contact list, and a completely separate instance for a personal family tree. I tried adding a filename to the instantiation of the GraphDatabaseService method, like so:

graph_db = neo4j.GraphDatabaseService("http://localhost:7474/db/data/graph.db")

But that did not work. Obviously, I am new to graph databases and neo4j, but I have had some previous experience in the relational database area, primarily mysql. Once again, the Q&A in the link below did not seem to completely answer my question.

Thanks.

Anyway to have multiple databases on a neo4j instance?

like image 443
ELamar Avatar asked Nov 23 '25 13:11

ELamar


1 Answers

It is one database per port in neo. You can spin up multiple processes listening on multiple ports, if needed.

like image 125
Eve Freeman Avatar answered Nov 26 '25 02:11

Eve Freeman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!