如何在Neo4j中迁移/移位/复制/移动数据 [英] How to migrate/shift/copy/move data in Neo4j

查看:2925
本文介绍了如何在Neo4j中迁移/移位/复制/移动数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何将数据从Neo4j的一个实例迁移到另一个实例。更准确地说,我想知道,如何将数据从本地机器上的Neo4j的一个实例移动到远程机器上的另一个实例。任何人都有任何想法。



我正在使用Eclipse和Embedded Neo4j在Windows计算机上工作。我需要将这些数据传输到Centos机器上的远程Neo4j实例。请帮我这个。

解决方案

对于嵌入式模式,您只需要找到图形neo4j-db文件夹位置,然后zip并将其发送到远程系统。



在您的代码中,您将调用graphdatabaseservice,您将指定目标位置



如果它的相对路径,那么数据库可能在您的项目文件夹中。



现在,在浏览器上运行数据库实例,您需要使用neo4j communty服务器并将其指向包含索引文件夹的文件夹。所以如果你的neo4j-db位于$ project / tmp / neo4j-db,那么你将给出文件路径,直到这个文件夹(索引文件夹将在这个文件夹内)。



编辑



需要压缩包含模式和索引文件夹的文件夹。您可以在独立服务器上使用Putty在某个位置上传和解压缩文件夹。然后只需更改 conf / neo4j-server.properties 文件中的 org.neo4j.server.database.location / p>

Does any one know how to migrate data from one instance of Neo4j to another. To be more precise, I want to know, how to move the data from one instance of Neo4j on my local machine to another on remote machine. Does any one have any idea about it.

I'm working on my windows machine with Eclipse and Embedded Neo4j . I need to transfer this data to remote Neo4j instance on a Centos machine. Please help me with this.

解决方案

For embedded mode , you would just need to locate the graph neo4j-db folder location then zip and send it to the remote system.

In your code where you would have called graphdatabaseservice , you would have given the target location

Check if its relative path then the database might be in your project folder .

Now for running the db instance on browser , you will need to use the neo4j communty server and point it to the folder containing the index folder. So if your neo4j-db is located at $project/tmp/neo4j-db then you will give the file path till this folder(the index folder will be inside this folder)

Edit

The folder that will contain the schema and index folders needs to be zipped. You can upload and unzip the folder at a certain location using Putty on your standalone server. Then just change the org.neo4j.server.database.location in conf/neo4j-server.properties file.

这篇关于如何在Neo4j中迁移/移位/复制/移动数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆