Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-24-2020 09:01 AM
Hello!
I don't have experience in neo4j and I don't know if what I want to do is possible. I have an external application that is responsible for analyzing android applications and creates a database in neo4j generating the following files:
I looked in the documentation but could not find how to do it
Is it possible to take these files as input to view the database with neo4j desktop or browser?
Thank you all.
05-24-2020 09:23 AM
@gabrieliturrab if your application have some database then you can use the Neo4j ETL tool. You can read how-to article here:
05-24-2020 09:30 AM
@gabrieliturrab re-reading your question, it seems that maybe i did not understand your question well.
Do you already have a neo4j database created and you now want to create a backup database dump file and load it on another instance?
Maybe you should check instead:
https://neo4j.com/docs/operations-manual/current/tools/dump-load/
05-24-2020 09:40 AM
Thank you for responding, @paul.are .
The application I mentioned earlier is supposed to already create the database and it should be contained in the image files.
Then what I need to do is from those files import it into neo4j and visualize the entities and relationships.
I hope it was understood better. I checked the links you attached but I'm not sure what I mentioned is explained.
Thank you very much.
05-24-2020 09:44 AM
@gabrieliturrab From the looks of it, you already have the neo4j database and do not need to import anything - you just need to use neo4j desktop client to connect to this database.
05-25-2020 03:30 PM
Thank you @paul.are
I read everything it says in the link, but I'm not sure where to copy the files to view the nodes and relationships...
It says import and opens a directory to add files, copy all the files there but the application does not recognize them.
05-26-2020 06:01 AM
@gabrieliturrab import folder is for loading data from CSV files.
Why don't you use neo4j desktop client to connect to this database that is used by this external application?
05-26-2020 03:03 AM
Hi @gabrieliturrab,
Merely copying files related to database ( from folder graph.db) will not bring the graph up.
Database needs to be properly dumped and restored. If you are using Neo4j 4.x then kindly go to
11-29-2020 07:08 AM
It's also my question, I could not find a way to import DB into the neo4j desktop!
01-30-2021 05:02 PM
@paul.are Got the same question as @gabrieliturrab. I've exported / dumped a bunch of Neo4j files into a zip or tar.gz and when it's extracted, theres a graph.db folder with files listed in the original question asked.
How do I use those files and restore them into the Neo4j Desktop app? I thought this would be a little more straightforward, but I've only found support for dump files.
02-02-2021 07:57 PM
I ran into this problem after trying to import an old graphene.db (neo4j as a service) database as they provide a zipped graph.db folder when exporting from their console (rather than using a proper db dump via the admin).
They way I got it running within the neo4j desktop environment was by creating a new database (best if you can match the version of the database you were running) and when it's finished installing, opening the directory where the database is held (click on the dropdown arrows, then "Open Folder".
Then navigate to where the graph.db folder is located (I found it at dbms-randomlyGeneratedID\data\databases\graph.db
) and replace the contents.
Running this didn't work immediately for me, I receiving errors when trying to start up the db. Checking the logs, it seems to be that the .id
files were in conflict (for example, ..\graph.db\neostore.relationshipgroupstore.db.id
). After deleting all of the files ending in .id
and restarting the database, it launched with no problems as the ids are regenerated on startup.
EDIT:
It appears there may be some issues after all...though the db is starting up and I can launch the Neo4j browser, it seems queries based on node labels/properties are not functioning property.
EDIT 2:
I went through what I thought to be the exact same process (same neo4j version created in neo4j desktop, same id files deleted...) however this time everything appears to be functioning as expected ¯_(ツ)_/¯
02-24-2021 11:35 PM
Hi all,
is this really the way to go?
I have an application running and for a test-system I need to do a copy of that DB and store it on the test-system. Then I open Neo4J Desktop, create a new Database local. Afterwards I copy the files from my app into the DB folder Neo4J desktop has created overwriting the existing ones. Then I can start the DB. Next day the DB is broken and I restart with the process above.
Isn't there an easier way to import a Neo4j DB of the same version into Neo4J desktop on another system?
Thanks,
Marcus
All the sessions of the conference are now available online