zoukankan      html  css  js  c++  java
  • 利用aopc创建schema失败

    执行neo4j-graph-algorithms的例子,运行以下代码报错: CALL apoc.schema.assert( {Category:[‘name’]}, {Business:[‘id’],User:[‘id’],Review:[‘id’]});

    报错信息: Neo.ClientError.Procedure.ProcedureRegistrationFailed apoc.schema.assert is unavailable because it is sandboxed and has dependencies outside of the sandbox. Sandboxing is controlled by the dbms.security.procedures.unrestricted setting. Only unrestrict procedures you can trust with access to database internals.

    目前已在conf文件设置 dbms.security.procedures.unrestricted=algo.* dbms.security.procedures.unrestricted=apoc.*

    请问如何解决?

    这个问题解决实际上很简单,首先确认在你的conf文件中:

    dbms.directories.plugins=plugins

    这一行是不是已经注销的,类似

    # dbms.directories.plugins=plugins

     接下来在配置apoc和algo的过程中:

    dbms.security.procedures.unrestricted=apoc.trigger.*,apoc.*,algo.*

    注意这里需要配置为一行,如果你配置成了两行,类似下面这样就会报 is unavailable because it is sandboxed and has dependencies outside of the sandbox. Sandboxing is controlled by the dbms.security.procedures.unrestricted setting这样的错误。

    1. dbms.security.procedures.unrestricted=apoc.trigger.*,apoc.*
    2. dbms.security.procedures.unrestricted=algo.*

    所以你把它放在一行就不会有问题了。 

    原文地址:https://blog.csdn.net/qq_32284189/article/details/85004896
  • 相关阅读:
    关于字符的C++函数
    VC6 LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing
    1019 数字黑洞 (20)
    1015 德才论 (25)
    1013 数素数 (20)(20 分)
    1003 我要通过!(20)(20 分)
    今日目标
    MySQL单列索引和组合索引的区别
    Struts2中过滤器和拦截器的区别
    SQL 统计 字段 竖向转横向 (行转列)显示
  • 原文地址:https://www.cnblogs.com/jpfss/p/11607746.html
Copyright © 2011-2022 走看看