如何从Neo4j中的示例数据集开始?
上周我安装了Neo4j 2.1.2(在我使用版本2.0.3之前)。我可以使用现有的数据库,因为我允许对它们进行分级。但是当我尝试使用neo4j.org上的新示例数据集(我想使用大电影数据集)时,我无法启动服务器。在console.log中,我看到以下错误如何从Neo4j中的示例数据集开始?,neo4j,dataset,Neo4j,Dataset,上周我安装了Neo4j 2.1.2(在我使用版本2.0.3之前)。我可以使用现有的数据库,因为我允许对它们进行分级。但是当我尝试使用neo4j.org上的新示例数据集(我想使用大电影数据集)时,我无法启动服务器。在console.log中,我看到以下错误 ERROR o.neo4j.kernel.EmbeddedGraphDatabase - Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceMana
ERROR o.neo4j.kernel.EmbeddedGraphDatabase - Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@5872c88c' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@11e51b89' was successfully initialized, but failed to start. Please see attached cause exception.: 'neostore.nodestore.db' has a store version number that we cannot upgrade from. Expected 'NodeStore v0.A.1' but file is version 'NodeStore v0.A.0'.
之后,我下载了一个我已经再次使用的数据集,并希望用该数据集启动服务器,但它也不起作用。为了能够使用neo4j示例数据集,我必须更改什么(可能是配置?在“neo4j.properties”文件中启用升级似乎不够?原因是您的数据用于不同(较旧)版本的neo4j 如果要将数据迁移到已安装的Neo4j版本,则需要更改以下设置: neo4j.属性
# Enable this to be able to upgrade a store from an older version.
allow_store_upgrade=true
原因是您的数据用于不同(旧)版本的Neo4j 如果要将数据迁移到已安装的Neo4j版本,则需要更改以下设置: neo4j.属性
# Enable this to be able to upgrade a store from an older version.
allow_store_upgrade=true
单击选项-->数据库基础调整-->编辑,然后在记事本中取消注释“allow\u store\u upgrade=true”行,如屏幕截图所示:
,在保存之后,服务器再次启动,至少对我来说工作正常。单击选项-->数据库基础调整-->编辑,然后在记事本中取消注释屏幕截图上的“允许存储\升级=真”行:
,保存之后,服务器再次启动,至少对我来说工作正常。请参阅“服务器再次启动”-您是指手动重新启动还是自动启动?“服务器再次启动”-您是指手动重新启动还是自动启动?