cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Change database path to a database generated by java program

using an java program , it generate an database in path F:\neo4j-community-3.5.3\TEST\stixdb
and ,it contains:

index/
logs/
neostore.nodestore.db.id
neostore.relationshipgroupstore.db
index.db
neostore.nodestore.db.labels
neostore.relationshipgroupstore.db.id
neostore.nodestore.db.labels.id
neostore.relationshipstore.db
neostore
neostore.propertystore.db
neostore.relationshipstore.db.id
neostore.counts.db.a
neostore.propertystore.db.arrays
neostore.relationshiptypestore.db
neostore.counts.db.b
neostore.propertystore.db.arrays.id
neostore.relationshiptypestore.db.id
neostore.id
neostore.propertystore.db.id
neostore.relationshiptypestore.db.names
neostore.labelscanstore.db
neostore.propertystore.db.index
neostore.relationshiptypestore.db.names.id
neostore.labeltokenstore.db
neostore.propertystore.db.index.id
neostore.schemastore.db
neostore.labeltokenstore.db.id
neostore.propertystore.db.index.keys
neostore.schemastore.db.id
neostore.labeltokenstore.db.names
neostore.propertystore.db.index.keys.id
neostore.transaction.db.0
neostore.labeltokenstore.db.names.id
neostore.propertystore.db.strings
store_lock
neostore.nodestore.db
neostore.propertystore.db.strings.id

when I changed the path to this database in neo4j.conf with paramter

dbms.active_database=stixdb
dbms.directories.data = F:/neo4j-community-3.5.3/TEST/stixdb

after command.\neo4j.bat restart
there would get an new database floder under the stixdb floder ,which contains no data . What is the right method to view the already generated data .

8 REPLIES 8

you'd have to use

dbms.directories.data=F:/neo4j-community-3.5.3/TEST/

When I change the neo4j.conf in :

dbms.active_database=stixdb
dbms.directories.data = F:/neo4j-community-3.5.3/TEST/

the neo4j.bat cannot restart . Should I use another command other than ".\neo4j.bat restart" ?

with changing the .conf into dbms.directories.data = F:/neo4j-community-3.5.3/TEST/
the neo4j cannot restart with :

PS F:\neo4j-community-3.5.3\bin> .\neo4j.bat restart
Neo4j service stopped
Neo4j service did not start

should I make more changes to the neo4j.conf ?

Hey there,

Please try:

dbms.directories.data = F:\\neo4j-community-3.5.3\\TEST

And can you try running:
neo4j.bat console to test it works?

well , I delete the generated db and copy my db to the path .
I know it is a stupid solution , but it works fine . Though I have to restart the bd each time

I have the same problem, could you tell me how did you do that because I am new with neo4j?
thank you