未找到 APOC 程序“apoc.export.csv.query”

Faa*_*aiz 8 neo4j-apoc

CALL apoc.export.csv.query("match (m:Movie) where m.name='Matrix' return m.name","results.csv",{})
Run Code Online (Sandbox Code Playgroud)
Error: Neo.ClientError.Procedure.ProcedureNotFound

There is no procedure with the name `apoc.export.csv.query` registered for this database instance.
Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
Run Code Online (Sandbox Code Playgroud)
  • Neo4j 社区版本 3.2.6
  • 插件“apoc-3.2.3.5.jar”已在插件目录中可用。
  • Windows 10 安装

Faa*_*aiz 4

  1. 确保您已在neo4j.conf文件中添加以下行:

    apoc.export.file.enabled=true
    
    Run Code Online (Sandbox Code Playgroud)
    • Windows 中的文件neo4j.conf位于:C:\Users\Username\AppData\Roaming\Neo4j Community Edition
  2. 编辑并取消注释#dbms.directories.plugins=plugins,如下所示

    dbms.directories.plugins=C:/Program Files/Neo4j CE 3.2.6/plugins
    
    Run Code Online (Sandbox Code Playgroud)
    • 如果#dbms.directories.plugins=plugins您的文件中不存在neo4j.config,那么您必须添加此行

  • 对于使用非 Windows 操作系统的用户,请阅读“neo4j.conf”文件位置[此处](https://neo4j.com/docs/operations-manual/current/configuration/file-locations/#file-locations-地点)。通常,Linux 的 /etc/neo4j/neo4j.conf (2认同)