如何在 Windows 系统中将 graph.db 定义到 NEO4J_HOME 以外的路径
从 Neo4j 3.0 开始,graph.db
目录的默认位置在 $NEO4J_HOME\databases\
下。要更改数据库目录的位置路径,请编辑 $NEO4J_HOME\conf\neo4j.conf
文件中的以下参数
# The name of the database to mount
dbms.active_database=graph.db
# Paths of directories in the installation.
dbms.directories.data=C:/MyNeoDB/
dbms.directories.data
的值应使用正斜杠 (/) 字符,而不是 Windows 路径名中通常使用的反斜杠 (\) 字符。
使用上述示例,graph.db
将记录在 C:\MyNeoDB\databases
中,并且目录将被命名为 graph.db
。
此页面有帮助吗?