New blank Neo4j Database

Recipe for creating new ‘blank’ database.

Putty onto the server 

cd /etc/neo4j

sudo vi neo4j.template


Uncomment and edit and change one line – the name of the database


#*****************************************************************
# Neo4j Community configuration
#
# For more details and a complete list of settings, please see
# https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/
#*****************************************************************

# The name of the database to mount
dbms.active_database=prod.db

cypher.forbid_shortestpath_common_nodes=false

# Paths of directories in the installation.
dbms.directories.data=/var/lib/neo4j/data


restart the machine / service.


When you now check the dbms.directories.data directory there is another directory alongside the default graph.db


The browser now shows an empty database with no nodes, relationships or properties.


Comments

Popular posts from this blog

Property DataType - apoc.meta.type

Stopping and Starting the Neo4j Database

NULLS in Neo4j