简体   繁体   English

来自JavaScript登录信息的Neo4j

[英]Neo4j from JavaScript login info

For the code below how do I get the username and password. 对于下面的代码,我如何获取用户名和密码。 From enter link description here 这里输入链接描述

var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "123456"));
var session = driver.session();

Is it my ID when I login? 登录时是我的ID吗?

在此处输入图片说明

or is it the database name and password? 还是数据库名称和密码?

在此处输入图片说明

I tried both ways still having trouble. 我尝试两种方式仍然遇到麻烦。

It's the latter, but the database name doesn't play a part here. 是后者,但是数据库名称在这里不起作用。

The database name in this case is only for your own reference within the Neo4j Desktop app. 在这种情况下,数据库名称仅供Neo4j Desktop应用程序中的您自己参考。

The default database user is neo4j , and the app forces you to choose the password when you create the database, so you should know the password. 默认的数据库用户是neo4j ,应用程序会在您创建数据库时强制您选择密码,因此您应该知道密码。

You can disable authentication. 您可以禁用身份验证。 Just uncomment dbms.security.auth_enabled=false in config file. 只需在配置文件中取消注释dbms.security.auth_enabled=false So you will not have problems with authentication. 因此,您将不会遇到身份验证问题。 The default username and password are neo4j:neo4j 默认的用户名和密码为neo4j:neo4j

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

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