Migrate Neo4j data to GrapheneDB - neo4j

So I’m ready to move my Neo4j database from my local machine to GrapheneDB for further development.
How can I move the data on my local machine to the GrapheneDB remote store?

I'm one of the founders at GrapheneDB.
Moving your data from your local machine to GrapheneDB is simple:
Stop your local instance: $ bin/neo4j stop
Put the contentes in a tarball or other type of compressed file (zip, gz): tar -cjf graph.tar.bz2 data/graph.db
Sign up or log in to GrapheneDB and create your database instance
Once the DB is created, navigate to the admin and use the restore feature to upload your compressed store files
Notes:
Neo4j should be stopped before copying your store files into a compressed file
You should restore into the same or a higher version on GrapheneDB, i.e. 2.0.X into 2.1.X or 2.1.6 into 2.1.6.
I hope this helps.
If you have any issues let us know. You can also contact our support once you've signed up through support UI or by emailing support at graphenedb dot com.

Related

Neo4j Dump and Restore

Ubuntu 20.04 running multiple databases running with different version numbers in a project in Neo4j Desktop 1.2.7 and need to move them over to a newly installed machine with the latest version of Neo4j Desktop (not sure which version that is because on the SSD that's unplugged right now!).
Tried:
bin/neo4j-admin dump --database="MYDATABASENAME" --to=/dumps/MYDATABASENAME-.dump"
Which gives error "Database does not exist" error as I understand the default database is "neo4j" and that this somehow contains the other databases? Makes no sense to me.
Tried:
bin/neo4j-admin dump --database=neo4j --to=/dumps/DougiDatabases.dump"
...Thinking that the neo4j database may contain all the other databases and that did dump. but the file was only 5Mb or so, where my databases are a number of Gb, so clearly not correct.
In system database I do SHOW DATABASES and it shows me the neo4j and system databases, but nothing else.
I've seen some mention of a dump button in the three dots by a database in Neo4j Desktop, but I don't have that (regardless of DB running or not). I only have a clone option.
Previously I have copied the database files from the /home/MYNAME/.config/Neo4j Desktop/Application/neo4jDatabases folder and then updated the databases listed in the /home/MYNAME/.config/Neo4j Desktop/Application/persist/databases.json, but it seems that the folder structure in the latest version of Neo4j Desktop has a different structure, so I wasn't sure if I could still do this. Not tried.
Driving me mad. This should be so easy.
What do I do please?
I worked it out. For databases 3.x you need to use "graph.db" as the database name. For databases 4.x you always use "neo4j" as the database name.
e.g.
bin/neo4j-admin dump --database="graph.db" --to="/dumpsFolder/myDatabase.dump"
bin/neo4j-admin dump --database="neo4j" --to="/dumpsFolder/myDatabase.dump"
You need to to into the admin area for each database, launch the terminal and execute these commands. In the latest version of Neo4j Desktop you can then copy the dump files into the root of the project. e.g.
/home/USERNAME/.config/Neo4j Desktop/Application/projects/project-XXX
Then click the ... next to the dump name in Neo4j Desktop and "create from dump file" or similar. You select the database version, name it, set a password and continue. The database will restore.

Move Neo4j databases in Neo4j Desktop from one computer to another

I am upgrading my local machine from Ubuntu 16.04 to 20.04. I run Neo4j Desktop (version 1.2.7) on my 16.04 and have installed it on the 20.04 machine and want to move the databases over.
I'm sure that in the past I just copied and pasted the database folders in /home/dougi/.config/Neo4j Desktop/Application/neo4jDatabases from one computer to the other and started Neo4j Desktop. However, when I do that no database show in the project.
I tried doing a dump and load, but couldn't see how I would load the database into Neo4j Desktop on the 20.04 machine as you have to "create" a database for it to show in the project and the database version when creating is limited to 4.0.3 and all of my databases are earlier versions than that (I don't want upgrade them right now).
I tried creating a database, deleting the files in the folder created in /home/dougi/.config/Neo4j Desktop/Application/neo4jDatabases and pasting the database folder from the 16.04 machine into it (i.e. replacing the files it created). I just get a message saying that the database files have been moved or corrupted when I load Neo4j Desktop.
I tried running a load from a dump I had made and had an error saying WARNING: Max 1024 open files allowed, minimum of 40 000 recommended.. I did find some google articles on that, but this felt like a really messy way of doing the restore so I didn't go any further with that.
What is the easiest way to move Neo4j Desktop databases from one computer to another please?
Thank you!
OK, so the answer to this is that there is a file /home/dougi/.config/Neo4j Desktop/Application/persist/databases.json which contains the list of databases that display in Neo4j Desktop.
Create a new database to add an entry to the file and then copy and paste that entry, replacing the database ID and version with those of the new databases you are adding files for to create an entry for each of the databases.
Restart your computer and delete the temporary database you created.
Or you could just copy the file from your previous version of Neo4j Desktop, assuming there are no formatting changes between versions of Neo4j Desktop.

Neo4j Enterprise VM Version 3.5 Database Transfer

I upload Neo4j Enterprise VM Version 3.5 to my Azure account. So right now I am using Neo4j in the Azure. 
I created before my database in the local desktop edition and I want to transfer it to Remote one (Neo4j Enterprise VM Version 3.5)  which is in Azure . 
However I couldnt find a way to do it. There is no option in Neo4j Enterprise VM Version 3.5 to put my graph.db zip file.
Someone can help to how transfer my local database to remote one ?
Thanks
The documented way to transfer a neo4j DB is to use:
The neo4j-admin dump command on the originating machine to create a dump file.
The neo4j-admin load command on the destination machine to fill a fresh DB from that dump file.
Refer to the documentation for more details.

Its lock file has been locked by another process - Neo4j Embedded

I am developing a embedded application of the Neo4j and I try run this but I get this error:
Store and its lock file has been locked by another process:
/home/dev/neo4j-community-2.3.2/data/graph.db/store_lock. Please
ensure no other process is using this database, and that the directory
is writable (required even for read-only access)
I know that is because the neo4j server application is running and it lock the directory to writable for another application.
But I want run both, the neo4j server with browser studio and my embedded application.
I am use the community edition 2.3.2 in Linux.
How can I do it?
It is possible in enterprise version?
Thanks
On the very same directory you can only run at most one instance at a given time.
Enterprise edition enables master-slave replication, so the graph.db is folder is propagated from master to slave instance. This would be an option for you.
I assume you want to access you embedded instance via the browser. See this blog post http://graphaware.com/neo4j/2014/11/21/neo4j-browser-with-embedded.html - be aware this one is based on 2.1 - as far as I remember in 2.3 some things have changed since then.

working with neo4j

Well i am working in gephi and there i have a plugin through which i have exported my graph to neo4j. Once exported it comes out to be folders in which there are some 10-12 files.
Now i have installed neo4j database in my system an running the server in
localhost:7474
It is displaying neo4j console .
Now my question is how to analyse my neo 4j folder which i have exported from gephi with the help of neo4j console Is this possible
Well i am probably new to this whole concept
Thanks
In your neo4j folder, you most certainly have a conf directory, with the file "neo4j-server.properties".
At the top you simply pu the path to your database :
# location of the database directory
org.neo4j.server.database.location=path/to/data.db
where data.db is a neo4j database directory.

Resources