top of page
Search

Neo4j: Default location of the database and configuration files.

  • Writer: Krishnaraj Rajagopal
    Krishnaraj Rajagopal
  • Feb 13, 2018
  • 1 min read

The default database name for neo4j is graph.db and it is located in the following directory

Ubuntu: /var/lib/neo4j/data/databases/

Windows: <neo4j-home>/data/databases/

The default configuration file is neo4j.conf and it located in the following directory

Ubuntu: /etc/neo4j

Windows: <neo4j-home>/conf/

Pointing neo4j server to a database other than default.

Follow the steps below.

1. Copy the other database to default database directory

2. Uncomment and update the following parameter in neo4j.conf to point to the new database.

#dbms.active.database=graph.db

to

dbms.active.database=<new database>.db

<new database> - the name of the database

Recent Posts

See All
Neo4j: Get label-relationship count

Run the following cypher query to get the label to relationship count match (n)-[r]-(m) return labels(n),count(r) as rel_count, labels(m)...

 
 
 
Neo4j: Get label count

Run the following cypher query to get the label counts call db.labels() yield label call apoc.cypher.run("match (:`"+label+"`) return...

 
 
 

Commentaires


©2017 by Krishna's Tech Notes. Proudly created with Wix.com

bottom of page