Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-27-2018 01:26 AM
Hi Everyone,
I have a question regarding the neo4j database setup.
i have neo4j installed in my aws cluster and it is running fine there it is using by default database .
i am curious to know about that can we create multiple database there , if yes then how can we do that and how would we use that new database.
Thanks in advance.
11-27-2018 06:36 AM
It's my understanding that you can run multiple Neo4j databases on the same instance, but they cannot run at the same time. In other words, multiple databases can exist, but they cannot be queried at the same time. I believe you create a new folder, and point the instance at that folder in the config before starting Neo4j. My development machine is on Windows, and I have the option to choose the folder Neo4j is supposed to use when firing up the database server.
I think the overall idea is that if your data is relate-able, then it should all be in the same database. Going to a whiteboard/mind map concept, what would be the relationship between the two databases that you'd want to query it? The line connecting the two databases would be the relationship between the data, and justify having all the data in one Neo4j database.
11-27-2018 10:51 PM
Hi Eric,
Thanks for your reply.
as per my understanding , you are saying that i have to point new database folder at below properties in neo4j,conf ?
dbms.directories.data=
dbms.directories.plugins=
dbms.directories.certificates=
dbms.directories.logs=
dbms.directories.lib=
dbms.directories.run=
dbms.directories.metrics=
12-11-2018 09:05 PM
I've only switched databases in the Windows version, but it looks like you've found the right spot.
01-10-2019 03:03 AM
Hi, the correct property is the following:
dbms.active_database=graph.db
Under graph.db
directory there is the whole database and you can have only one active database for a single running instance. Multi-tenancy is implemented through a multi-cluster concept.
All the sessions of the conference are now available online