neo4j: How to Switch Database? -


hi created neo4j database custom java application , tried change path in configuration file in order connect created database.

while trying check data in webadmin console node 0 visible (seems database empty). tried import same database gephi , it's not empty.

furthermore when tried switch original database, wasn't empty, in webadmin node 0 appeared.

i tried modify neo4j-server.propertied file following way:

#***************************************************************** # administration client configuration #*****************************************************************  # location of servers round-robin database directory. possible values: # - absolute path /var/rrd # - path relative server working directory data/rrd # - commented out, default database data directory. org.neo4j.server.webadmin.rrdb.location=data/rrd  # rest endpoint data api # note / in end mandatory #org.neo4j.server.webadmin.data.uri=/db/data/ #original database org.neo4j.server.webadmin.data.uri="/db/mydatabase" #my database  # rest endpoint of administration api (used webadmin) org.neo4j.server.webadmin.management.uri=/db/manage/  # low-level graph engine tuning file org.neo4j.server.db.tuning.properties=conf/neo4j.properties 

after switching original database (commenting new path , uncommenting old)

org.neo4j.server.webadmin.data.uri=/db/data/ #original database #org.neo4j.server.webadmin.data.uri="/db/mydatabase" #my database 

the old wan seemed empty well.

does know how , set path in order see appropriate database in webadmin console , able execute queries on desired database?

thank you!

you first need confirm database connecting shut down (means should not take image of running database).

set location of database if in server mode file

conf/neo4j-server.properties 

by editing below line.

org.neo4j.server.database.location=data/graph.db 

if using embedded neo4j can set location of db while instantaniating graphdatabaseservice under:

new embeddedgraphdatabase("path db directory"); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -