简体   繁体   中英

Neo4J Connection issues to local project

I am really sorry to ask a simple question like this, but it is getting frustrating. I installed neo4j 4.0.4 on my Windows machine, created a new project as shown in the official tutorial video and set a password for my local graph. Funnily, the tutorial video ends after setting the password and opening the browser not showing how to perform Cypher queries on this newly created database. In neo4j Desktop my database is shown correctly and it seems to be up and running.

新图

However, when I try to connect to this database via the browser, I do not see the database at all. It is so confusing when connecting to the server to specify a username and password, if you only need to set a password for your database?. The default neo4j user can see the system and default database but not my project database, In addition. I cannot link files from the project directory in Cypher queries, I tried to disable authentication. but it did not help at all, When I issue SHOW DATABASES command. it does not list my database as well.

浏览器

Update / Edit:

Seems I misunderstood the concept of projects. Every database is named neo4j - default, regardless of the name specified in the project?., However. I still cannot access project files, So far. I copied the files manually in the database directory under "imports". But I guess that is not the intended way.

After importing data to this default database, it still shows no data in the project itself.

在此处输入图像描述

Data files in the imports directory are not automatically imported into the DB. That is because neo4j has no idea how you want to store that data as nodes and relationships.

So, it is up to you to determine your desired data model , and then write the appropriate code to enforce that data model.

You can take a look at this page to learn about how to import CSV data (probably the most commonly used import data format).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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