如何在 Neo4j 中迁移/转移/复制/移动数据

2022-01-13 00:00:00 windows neo4j migration centos eclipse

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

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.

我正在使用 Eclipse 和 Embedded Neo4j 在我的 Windows 机器上工作.我需要将此数据传输到 Centos 机器上的远程 Neo4j 实例.请帮我解决一下这个.

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.

推荐答案

在使用neo4j-import工具后,我发现了以下解决方法,用于将数据从集群中的服务器复制到所有其他服务器:

I found out the following workaround for copying the data from a server in the cluster to all others, after using the neo4j-import tool:

  1. 停止所有节点.

  1. Stop all nodes.

在需要复制数据的新节点/服务器上,您必须为该图创建数据库文件夹(在我的情况下为 loadTest):/neo4j-enterprise-3.1.0/data/databases/loadTest.db

On the new node/server, where you need your data to be copied, you have to create the database folder for that graph (in my case loadTest): /neo4j-enterprise-3.1.0/data/databases/loadTest.db

然后,保存数据的源节点/服务器,您必须在此处将 neostore.id 文件复制到目标服务器的 db 文件夹(上一步中的 loadTest.db).

Then, the source node/server that is holding the data, you have to copy here the neostore.id file to the destination server db folder (loadTest.db from the previous step).

启动所有节点.在后台,neo4j 会将数据从其他集群服务器复制到新节点.

Start all nodes. In the background neo4j will copy data from other cluster servers to the new node.

相关文章