Change database path to a database generated by java program

operations

(Limengmignx) #1

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 .


(Michael Hunger) #2

you'd have to use

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


(Limengmignx) #3

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" ?


(Limengmignx) #4

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


(Limengmignx) #5

should I make more changes to the neo4j.conf ?


(Chris Skardon) #6

Hey there,

Please try:

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

(Chris Skardon) #7

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


(Limengmignx) #8

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