【问题标题】:Neo4j Community Server: Cannot select my database in the remote interfaceNeo4j 社区服务器:无法在远程界面中选择我的数据库
【发布时间】:2021-08-06 11:50:12
【问题描述】:

我对 Neo4j 还是比较陌生,尤其是 Neo4j 社区服务器 4 的新手。所以如果我在这里只是愚蠢,请原谅我。

我正在使用 neo4j-community-4.3.2 服务器并通过 neo4j-admin 导入导入我的数据:

bin/neo4j-admin import --database=dicom --skip-duplicate-nodes --skip-bad-relationships --nodes=... 

(所以我将数据库命名为“dicom”)

到目前为止一切顺利。直到这里一切正常:

IMPORT DONE in 42s 16ms. 
Imported:
  81656 nodes
  694772 relationships
  2252244 properties

当我想用./bin/neo4j console 启动数据库时,它也能正常工作:

Directories in use:
home:         /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2
config:       /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/conf
logs:         /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/logs
plugins:      /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/plugins
import:       /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/import
data:         /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/data
certificates: /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/certificates
licenses:     /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/licenses
run:          /Users/tobias/Library/Mobile Documents/com~apple~CloudDocs/Documents/Uni/Masterarbeit/Neo4j/neo4j-community-4.3.2/run
Starting Neo4j.
2021-08-06 10:53:47.901+0000 INFO  Starting...
2021-08-06 10:53:49.310+0000 INFO  ======== Neo4j 4.3.2 ========
2021-08-06 10:53:53.761+0000 INFO  org.neo4j.internal.kernel.api.security.AbstractSecurityLog$SecurityLogLine@3da61af2
2021-08-06 10:53:53.765+0000 INFO  org.neo4j.internal.kernel.api.security.AbstractSecurityLog$SecurityLogLine@54530644
2021-08-06 10:53:53.765+0000 INFO  org.neo4j.internal.kernel.api.security.AbstractSecurityLog$SecurityLogLine@42734b71
2021-08-06 10:53:53.846+0000 INFO  org.neo4j.internal.kernel.api.security.AbstractSecurityLog$SecurityLogLine@726d8fa0
2021-08-06 10:53:53.866+0000 INFO  org.neo4j.internal.kernel.api.security.AbstractSecurityLog$SecurityLogLine@666b1244
2021-08-06 10:53:53.888+0000 INFO  org.neo4j.internal.kernel.api.security.AbstractSecurityLog$SecurityLogLine@789d8fd6
2021-08-06 10:53:56.919+0000 INFO  Bolt enabled on localhost:7687.
2021-08-06 10:53:57.446+0000 INFO  Remote interface available at http://localhost:7474/
2021-08-06 10:53:57.447+0000 INFO  Started.

所以我认为它奏效了。我在浏览器中打开了 http://localhost:7474/ 以使用数据库,但显然自从 neo4j 社区 4 以来就有多个数据库。在下拉菜单中,我有一个名为“neo4j”和一个名为“system”,但不幸的是没有一个名为“dicom”。我做错什么了?为什么我在那里看不到我的 dicom 数据库?在 Neo4j 目录 NEO4J_HOME/data/databases 中有一个名为“dicom”的文件夹,它似乎与文件夹“neo4j”和“system”具有相同的文件。

有人有什么想法吗?我将不胜感激!抱歉,帖子太长了,我只是想彻底。

【问题讨论】:

    标签: neo4j


    【解决方案1】:

    请在 /conf/neo4j.conf 文件中查找此配置。然后改成

     old: dbms.default_database=neo4j
    
     New: dbms.default_database=dicom
    

    然后重启你的 neo4j 实例。

    【讨论】:

    • 做到了!非常感谢!你真的救了我的好朋友!
    • 很高兴为您提供帮助!祝你的项目好运。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-26
    • 1970-01-01
    • 1970-01-01
    • 2012-08-01
    • 1970-01-01
    相关资源
    最近更新 更多