简体   繁体   English

如何使用neo4j浏览器通过螺栓连接到neo4j嵌入式实例?

[英]How do I connect to a neo4j embedded instance via bolt using the neo4j browser?

I've followed the instructions in section 4.14 of the documentation but I can't figure out how to connect the neo4j browser to my embedded instance. 我已经按照文档第4.14节中的说明进行操作,但是我不知道如何将neo4j浏览器连接到我的嵌入式实例。 Once the server is running, I open the browser via neo4j desktop and run :server connect . 服务器运行后,我通过neo4j桌面打开浏览器并运行:server connect This prompts me for a host, username, and password. 这提示我输入主机,用户名和密码。 I'm not sure what to put for these values. 我不确定要为这些值加上什么。 I've tried many combinations of localhost , localhost:7687 , and bolt://localhost:7687 for the host, and I've tried username/password combinations such as neo4j/neo4j, neo4j as a username with a blank password, and a blank username and password. 我为localhost尝试了localhostlocalhost:7687bolt://localhost:7687许多组合,并且尝试了用户名/密码组合,例如neo4j / neo4j,neo4j作为带有空密码的用户名和用户名和密码为空。 I've never set a username and password for the database. 我从未为数据库设置用户名和密码。 No matter what I try, I always get the following error: 无论我尝试什么,我总是会遇到以下错误:

ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: 3

What are the proper values for host, username, and password? 主机,用户名和密码的正确值是什么?

Turns out either localhost:7687 or bolt://localhost:7687 is fine, and username/password can both be empty. 结果显示localhost:7687bolt://localhost:7687都可以,并且用户名/密码都可以为空。 Interestingly enough, the way I was building my uber-jar with maven seemed to make the bolt dependency unavailable. 有趣的是,我用maven构建uber-jar的方式似乎使bolt依赖项不可用。 I switched to buck and the bolt connector seemed to start. 我切换到降压 ,螺栓连接器似乎启动了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM