从 1.9.4 升级到 2.0.1 时移动 Neo4J 数据库时出错 [英] Error moving Neo4J database when upgrading from 1.9.4 to 2.0.1

查看:8
本文介绍了从 1.9.4 升级到 2.0.1 时移动 Neo4J 数据库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将 Neo4J 从 1.9.4 升级到 2.0.1 最新的稳定版本.

I just upgraded my Neo4J from 1.9.4 to 2.0.1 newest stable release.

升级说明你可以使用旧数据库启动新的 Neo4J,前提是

The upgrade instructions say that you can just start the new Neo4J with the old database provided that

allow_store_upgrade=true 

这正是我所做的.

但是,当我将旧的graph.db文件夹(包含所有数据)复制到新安装的数据文件夹中并尝试第一次运行neo4j时,它不起作用.我在 Neo4j 启动时在终端中收到的错误消息是

However, when I copied my old graph.db folder (which contains all data) into the data folder of the new installation and tried to run neo4j for the first time, it didn't work. The error message I got in terminal upon neo4j start was

Using additional JVM arguments:  -server -XX:+DisableExplicitGC -        
Dorg.neo4j.server.properties=conf/neo4j-server.properties -
Djava.util.logging.config.file=conf/logging.properties -
Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -
XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [462]... waiting for server to be ready... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

当我从新安装中删除 graph.db 文件夹并再次运行 neo4j start 时,一切都开始正常,当然还有一个新的干净数据库.

When I removed the graph.db folder from the new installation and ran neo4j start once again, it all started fine, but with a new clean database, of course.

FIY 我在 Mac OS X 10.9 上运行它,安装了最新的 Java 1.7.0_51-b13 SDK.

FIY I run it on Mac OS X 10.9, the newest Java 1.7.0_51-b13 SDK installed.

有人知道我做错了什么吗?谢谢!

Does anybody know what I did wrong? Thank you!

推荐答案

好的,我找到了解决方案.升级说明说你应该在 conf/neo4j.properties 中取消注释这个字符串:

Ok, I found a solution. The upgrade instructions say that you should uncomment this string in conf/neo4j.properties:

#allow_store_upgrade=true

但他们没有说的是,在旧版本中最后一次关闭数据库之前,您应该取消注释旧数据库中的注释.

But what they don't say is that you should uncomment is in the OLD database BEFORE you shut it down the one last time in the old version.

然后,当你安装新数据库时,只需将graph.db文件夹复制到新的2.0.1 Neo4J的/data文件夹中,然后在启动之前,进入NEW数据库的/conf文件夹,发现相同的 neo4j.properties 文件,取消注释同一行:

Then, when you install the new database, just copy the graph.db folder into the /data folder of the new 2.0.1 Neo4J, then, before launching it, go to /conf folder of the NEW database, find that same neo4j.properties file, UNCOMMENT that same line:

allow_store_upgrade=true

然后第一次启动新的2.0.1 Neo4J数据库,确保数据一切正常.

Then launch the new 2.0.1 Neo4J database for the first time, make sure the data is all fine.

不要忘记在关闭数据库后对该选项进行评论.

Don't forget to then comment that option once you shut down the database.

有点复杂的更新方式,如果 Neo4J 提供一种更好、更简化的方式来做到这一点就好了......

A bit of a complicated way to update, would be great if Neo4J provided a better and more streamlined way to do that...

这篇关于从 1.9.4 升级到 2.0.1 时移动 Neo4J 数据库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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