I had a local instance of Neo4j at version 3.3.1. This morning my Ubuntu Software updater listed a number of updates that were available amongst which was "Grah database engine" or similar. I selected to install the updates without giving enough thought to it and it now seems to have installed Neo4j version 3.4.7.
Clearly I'm aware that it's a good idea to upgrade, but this wasn't planned and I haven't followed the upgrade planning steps outlined here: https://neo4j.com/docs/operations-manual/current/upgrade/planning/
Further the version I have locally now doesn't match the live applications I have running on web servers.
I don't have time or resources to do full planned upgrades this week, but do need to access and use the database.
What is my best course of action please? Should I try and downgrade the database engine to 3.3.1 again? How would I do that?
Thanks very much!
答案 0 :(得分:1)
好的,所以我认为我已经对它进行了排序。这种方法效果很好,因为我的数据库文件位置为 OUTSIDE ,是常规Neo4j安装的位置。如果您将数据存储在默认的/ var / lib / neo4j / data位置,则不希望这样做,因为我相信apt-get purge
会删除您的数据。
以防对他人有帮助。
首先,我备份/etc/neo4j/neo4j.conf。
然后卸载了Neo4j 3.4.7:
sudo apt-get purge neo4j*
然后我重新安装了3.3.1版:
sudo apt-get install neo4j=3.3.1
我在/etc/neo4j/neo4j.conf中恢复了数据库位置路径dbms.directories.data
。
开始Neo4j。
一切似乎都很好。