Multiple Neo4j schemas/databases on same server?

1,988 views
Skip to first unread message

Rodger

unread,
Aug 2, 2013, 1:58:27 AM8/2/13
to ne...@googlegroups.com
Dear Experts,


In Oracle, on a single database, there are multiple schemas.
In Sql Server, on a single server, there are multiple "databases".

So far I've seen all the Neo4j data under: ../data/graph.db
And, I've shutdown, backed up, and restored different graph databases 
to the same directory. 


Is there a way to have multiple databases for the same Neo4j binaries?
If so, what is the link for more info?


Thanks a lot!

Rodger

Peter Neubauer

unread,
Aug 2, 2013, 11:43:16 AM8/2/13
to Neo4j User

You can keep any number of graphs in one database, possibly separating then via start nodes or labels.

In one embedded application you can also instantiate any number of concurrent databases, which will live in the same jvm and fight for resources.

For neo4j server, there is only one database handled in order to make things more predictable, one jvm per database. However, you can start multiple servers on multiple ports, and e. G. 7575 and 7474, sinuous habe two servers handling 2 db's in two jvms. Jvm isolation is much better developed than us trying to sandbox things.

Makes sense?

/peter

(snt)-[frm]->(phn)

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rodger

unread,
Aug 2, 2013, 5:59:55 PM8/2/13
to ne...@googlegroups.com


Thanks Peter.  

Is there a link to show how to do this?

R.



Peter Neubauer

unread,
Aug 3, 2013, 12:12:55 AM8/3/13
to Neo4j User

To start multiple neo4j servers at different ports, just copy and adjust the ports in neo4j.properties, and start a second server with that configuration file. Can Do a screen cast after my holiday (2w).

/peter

(snt)-[frm]->(phn)

Ganesh Babu

unread,
Aug 7, 2017, 10:32:47 AM8/7/17
to Neo4j, peter.n...@neotechnology.com
Hi Peter,

Could you please share a documentation or link how we need to start multiple neo4j servers at different ports?

-Ganeshbabu

Michael Hunger

unread,
Aug 7, 2017, 4:06:45 PM8/7/17
to ne...@googlegroups.com
Hi Ganesh,

you'd have to manage the config file to start several instances of Neo4j with different port and database settings.

Please try the new neo4j-desktop for that: 

Neo4j Desktop

A platform for easily managing Neo4j installations on your personal desktop or laptop.

Neo4j Desktop 0.3.5 (Windows) 
Neo4j Desktop 0.3.5 (Mac) 
Neo4j Desktop 0.3.5 (Linux) 



To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sean R

unread,
Aug 7, 2017, 8:08:24 PM8/7/17
to Neo4j
Even I was expecting multiple schema kind of flexibility. That way we can avoid modifying other nodes, which are not relevant.

Thanks
Reply all
Reply to author
Forward
0 new messages