If you have multiple graphs set up and want to quickly switch between each without modifying
you can accomplish this with a
neo4j restart and with the environment variable
NEO4J_CONF defined pointing to the appropriate/corresponding neo4j.conf file.
For example, one could define:
and where each directory has the same files, namely:
and in the
$NEO4J_HOME/conf_tests/neo4j.conf one might configure the databse name to a different graph:
Then, prior to a restart of neo4j if one modifies the environment variable
NEO4J_CONF to point to the $NEO4J_HOME/conf_test, for
then upon restart of neo4j, it will then use the graph in the
Note: Be aware that the
dbms.active_database setting in
neo4j.conf is one of many settings that you may want/need to change.
If for example you do not change
#dbms.directories.logs=logs then both conf files will result in each Neo instance