知识库

如何为 Windows 定义除 NEO4J_HOME 之外的 graph.db 路径

从 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

© . This site is unofficial and not affiliated with Neo4j, Inc.