cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Graph database lost after upgrading Neo4j Desktop

Hello there,

I was experimenting with Neo4j earlier this year and had a graph database setup locally with some example data. I upgraded Neo4j Desktop to v1.2.3 today when prompted by the app as I hadn't used it for a while. However, after upgrading the earlier database I mentioned was no longer showing up in the UI.

Has that data been lost? Is there anyway for me to recover the old database from some files that Neo4j keeps on the filesystem somewhere?

Any help would be greatly appreciated! I was hoping to get stuck into Neo4j again but wanted to pick up where I left off last time rather than starting from scratch

1 ACCEPTED SOLUTION

  1. Copy the both graph.db folders
    ─ databases
    │ │ └── graph.db

to different folders in a local directory.

  1. In Neo4j desktop, click on Add Graph and click on Create Local Graph and enter name and password.Finally click on Create button. It creates a new db.

  1. Click on Manage button. Click on the drop down arrow on Open Folder:

2X_e_e588d34d9895f1ab99b382d67672380b9d5eff90.png

  1. Click on Import. On the screen right click on Import at the top of he screen. Select 'Installation..' folder.

2X_c_c64bd064ce9ed19a87a37b8adbecd4fd1e3ec3a7.png

  1. Scroll down to databases folder:

2X_c_c97427d70beb40904c68f70abb4fa3eb921af460.png

  1. Copy one of your graph.db folder in to this databases folder.Close this screen and click on start button. Once it shows running, then open browser and type match(n) return n to see if it shows your data.

  2. If there is no data, stop the db, delete the graph.db and copy the other graph.db in to databases folder and repeat step 6.

  3. If you want you can create another db (steps 2-6) and copy the second graph.db.

Hope this works.

View solution in original post

5 REPLIES 5

Hi @hashlugg,

There are a few things we can check out and how to recover your database again.

  • The first is to let us know what error you are giving or if simply the bank that was there disappeared.
  • The second is to tell if the location your saved database still exists. In windows the location (C: \ Users \ YourUser \ .Neo4jDesktop)
  • The third is trying to downgrade, but I would leave it for last.

Thanks

Thanks for replying @jhonathanmarolo. There are no errors but the database has disappeared:

I'm a Mac user but I can see there are some files in this location:

$ ls /Users/<username>/Library/Application\ Support/Neo4j\ Desktop/Application/neo4jDatabases
database-287c7992-bba4-44e4-9b63-736e4419c953 
database-fb6e3fc0-e9cb-4419-be53-0d4788a710c1

I'm not sure if there's a way for me to identify if one of these two folders contain my old database? I had a little sift through the files but nothing jumped out at me, I could easily have overlooked something though.

Below is a tree view of the entire contents of those two directories above:

/Users/<username>/Library/Application\ Support/Neo4j\ Desktop/Application/neo4jDatabases
├── database-287c7992-bba4-44e4-9b63-736e4419c953
│   └── installation-3.3.3
│       ├── LICENSE.txt
│       ├── LICENSES.txt
│       ├── NOTICE.txt
│       ├── README.txt
│       ├── UPGRADE.txt
│       ├── bin
│       │   ├── cypher-shell
│       │   ├── neo4j
│       │   ├── neo4j-admin
│       │   ├── neo4j-backup
│       │   ├── neo4j-import
│       │   ├── neo4j-shell
│       │   └── tools
│       │       ├── 2.x-config-migrator.jar
│       │       └── cypher-shell-all.jar
│       ├── certificates
│       │   ├── neo4j.cert
│       │   └── neo4j.key
│       ├── conf
│       │   ├── jmx.access
│       │   ├── jmx.password
│       │   └── neo4j.conf
│       ├── data
│       │   ├── databases
│       │   │   └── graph.db
│       │   │       ├── index
│       │   │       ├── neostore
│       │   │       ├── neostore.counts.db.a
│       │   │       ├── neostore.counts.db.b
│       │   │       ├── neostore.id
│       │   │       ├── neostore.labelscanstore.db
│       │   │       ├── neostore.labeltokenstore.db
│       │   │       ├── neostore.labeltokenstore.db.id
│       │   │       ├── neostore.labeltokenstore.db.names
│       │   │       ├── neostore.labeltokenstore.db.names.id
│       │   │       ├── neostore.nodestore.db
│       │   │       ├── neostore.nodestore.db.id
│       │   │       ├── neostore.nodestore.db.labels
│       │   │       ├── neostore.nodestore.db.labels.id
│       │   │       ├── neostore.propertystore.db
│       │   │       ├── neostore.propertystore.db.arrays
│       │   │       ├── neostore.propertystore.db.arrays.id
│       │   │       ├── neostore.propertystore.db.id
│       │   │       ├── neostore.propertystore.db.index
│       │   │       ├── neostore.propertystore.db.index.id
│       │   │       ├── neostore.propertystore.db.index.keys
│       │   │       ├── neostore.propertystore.db.index.keys.id
│       │   │       ├── neostore.propertystore.db.strings
│       │   │       ├── neostore.propertystore.db.strings.id
│       │   │       ├── neostore.relationshipgroupstore.db
│       │   │       ├── neostore.relationshipgroupstore.db.id
│       │   │       ├── neostore.relationshipstore.db
│       │   │       ├── neostore.relationshipstore.db.id
│       │   │       ├── neostore.relationshiptypestore.db
│       │   │       ├── neostore.relationshiptypestore.db.id
│       │   │       ├── neostore.relationshiptypestore.db.names
│       │   │       ├── neostore.relationshiptypestore.db.names.id
│       │   │       ├── neostore.schemastore.db
│       │   │       ├── neostore.schemastore.db.id
│       │   │       ├── neostore.transaction.db.0
│       │   │       └── store_lock
│       │   └── dbms
│       │       ├── auth
│       │       └── roles
│       ├── import
│       ├── lib
│       │   ├── asm-5.2.jar
│       │   ├── asm-analysis-5.2.jar
│       │   ├── asm-tree-5.2.jar
│       │   ├── asm-util-5.2.jar
│       │   ├── bcpkix-jdk15on-1.53.jar
│       │   ├── bcprov-jdk15on-1.53.jar
│       │   ├── caffeine-2.3.3.jar
│       │   ├── commons-beanutils-1.9.3.jar
│       │   ├── commons-collections-3.2.2.jar
│       │   ├── commons-compress-1.12.jar
│       │   ├── commons-configuration-1.10.jar
│       │   ├── commons-io-2.4.jar
│       │   ├── commons-lang-2.6.jar
│       │   ├── commons-lang3-3.5.jar
│       │   ├── commons-logging-1.1.1.jar
│       │   ├── commons-text-1.1.jar
│       │   ├── concurrentlinkedhashmap-lru-1.4.2.jar
│       │   ├── hazelcast-all-3.7.5.jar
│       │   ├── jackson-core-asl-1.9.13.jar
│       │   ├── jackson-jaxrs-1.9.13.jar
│       │   ├── jackson-mapper-asl-1.9.13.jar
│       │   ├── javax.servlet-api-3.1.0.jar
│       │   ├── jersey-core-1.19.jar
│       │   ├── jersey-multipart-1.19.jar
│       │   ├── jersey-server-1.19.jar
│       │   ├── jersey-servlet-1.19.jar
│       │   ├── jetty-http-9.2.22.v20170606.jar
│       │   ├── jetty-io-9.2.22.v20170606.jar
│       │   ├── jetty-security-9.2.22.v20170606.jar
│       │   ├── jetty-server-9.2.22.v20170606.jar
│       │   ├── jetty-servlet-9.2.22.v20170606.jar
│       │   ├── jetty-util-9.2.22.v20170606.jar
│       │   ├── jetty-webapp-9.2.22.v20170606.jar
│       │   ├── jetty-xml-9.2.22.v20170606.jar
│       │   ├── jline-2.12.jar
│       │   ├── jsr311-api-1.1.2.r612.jar
│       │   ├── lucene-analyzers-common-5.5.0.jar
│       │   ├── lucene-codecs-5.5.0.jar
│       │   ├── lucene-core-5.5.0.jar
│       │   ├── lucene-queryparser-5.5.0.jar
│       │   ├── metrics-core-3.1.2.jar
│       │   ├── metrics-graphite-3.1.2.jar
│       │   ├── mimepull-1.9.3.jar
│       │   ├── neo4j-auth-plugin-api-3.3.3.jar
│       │   ├── neo4j-backup-3.3.3.jar
│       │   ├── neo4j-bolt-3.3.3.jar
│       │   ├── neo4j-browser-3.1.4.jar
│       │   ├── neo4j-causal-clustering-3.3.3.jar
│       │   ├── neo4j-causal-clustering-commercial-3.3.3.jar
│       │   ├── neo4j-cluster-3.3.3.jar
│       │   ├── neo4j-codegen-3.3.3.jar
│       │   ├── neo4j-collections-3.3.3.jar
│       │   ├── neo4j-com-3.3.3.jar
│       │   ├── neo4j-command-line-3.3.3.jar
│       │   ├── neo4j-common-3.3.3.jar
│       │   ├── neo4j-configuration-3.3.3.jar
│       │   ├── neo4j-consistency-check-3.3.3.jar
│       │   ├── neo4j-csv-3.3.3.jar
│       │   ├── neo4j-cypher-3.3.3.jar
│       │   ├── neo4j-cypher-compiler-2.3-2.3.10.jar
│       │   ├── neo4j-cypher-compiler-3.1-3.1.6.jar
│       │   ├── neo4j-cypher-compiler-3.2-3.2.9.jar
│       │   ├── neo4j-cypher-compiler-3.3-3.3.3.jar
│       │   ├── neo4j-cypher-frontend-2.3-2.3.10.jar
│       │   ├── neo4j-cypher-frontend-3.1-3.1.6.jar
│       │   ├── neo4j-cypher-frontend-3.2-3.2.9.jar
│       │   ├── neo4j-cypher-frontend-3.3-3.3.3.jar
│       │   ├── neo4j-cypher-ir-3.2-3.2.9.jar
│       │   ├── neo4j-cypher-ir-3.3-3.3.3.jar
│       │   ├── neo4j-cypher-logical-plans-3.3-3.3.3.jar
│       │   ├── neo4j-cypher-physical-planning-3.3.3.jar
│       │   ├── neo4j-cypher-slotted-runtime-3.3.3.jar
│       │   ├── neo4j-dbms-3.3.3.jar
│       │   ├── neo4j-enterprise-cypher-3.3.3.jar
│       │   ├── neo4j-enterprise-kernel-3.3.3.jar
│       │   ├── neo4j-graph-algo-3.3.3.jar
│       │   ├── neo4j-graph-matching-3.1.6.jar
│       │   ├── neo4j-graphdb-api-3.3.3.jar
│       │   ├── neo4j-ha-3.3.3.jar
│       │   ├── neo4j-import-tool-3.3.3.jar
│       │   ├── neo4j-index-3.3.3.jar
│       │   ├── neo4j-io-3.3.3.jar
│       │   ├── neo4j-jmx-3.3.3.jar
│       │   ├── neo4j-kernel-3.3.3.jar
│       │   ├── neo4j-logging-3.3.3.jar
│       │   ├── neo4j-lucene-index-3.3.3.jar
│       │   ├── neo4j-lucene-upgrade-3.3.3.jar
│       │   ├── neo4j-management-3.3.3.jar
│       │   ├── neo4j-metrics-3.3.3.jar
│       │   ├── neo4j-primitive-collections-3.3.3.jar
│       │   ├── neo4j-query-logging-3.3.3.jar
│       │   ├── neo4j-resource-3.3.3.jar
│       │   ├── neo4j-security-3.3.3.jar
│       │   ├── neo4j-security-enterprise-3.3.3.jar
│       │   ├── neo4j-server-3.3.3.jar
│       │   ├── neo4j-server-commercial-3.3.3.jar
│       │   ├── neo4j-server-enterprise-3.3.3.jar
│       │   ├── neo4j-shell-3.3.3.jar
│       │   ├── neo4j-ssl-3.3.3.jar
│       │   ├── neo4j-udc-3.3.3.jar
│       │   ├── neo4j-unsafe-3.3.3.jar
│       │   ├── neo4j-values-3.3.3.jar
│       │   ├── netty-3.9.9.Final.jar
│       │   ├── netty-all-4.1.17.Final.jar
│       │   ├── opencsv-2.3.jar
│       │   ├── parboiled-core-1.1.7.jar
│       │   ├── parboiled-scala_2.11-1.1.7.jar
│       │   ├── rhino-1.7R4.jar
│       │   ├── scala-library-2.11.12.jar
│       │   ├── scala-reflect-2.11.12.jar
│       │   ├── server-api-3.3.3.jar
│       │   ├── shiro-cache-1.4.0.jar
│       │   ├── shiro-config-core-1.4.0.jar
│       │   ├── shiro-config-ogdl-1.4.0.jar
│       │   ├── shiro-core-1.4.0.jar
│       │   ├── shiro-crypto-cipher-1.4.0.jar
│       │   ├── shiro-crypto-core-1.4.0.jar
│       │   ├── shiro-crypto-hash-1.4.0.jar
│       │   ├── shiro-event-1.4.0.jar
│       │   ├── shiro-lang-1.4.0.jar
│       │   ├── slf4j-api-1.7.7.jar
│       │   └── slf4j-nop-1.7.22.jar
│       ├── logs
│       │   ├── debug.log
│       │   ├── neo4j.log
│       │   └── security.log
│       ├── plugins
│       └── run
└── database-fb6e3fc0-e9cb-4419-be53-0d4788a710c1
    └── installation-3.3.3
        ├── LICENSE.txt
        ├── LICENSES.txt
        ├── NOTICE.txt
        ├── README.txt
        ├── UPGRADE.txt
        ├── bin
        │   ├── cypher-shell
        │   ├── neo4j
        │   ├── neo4j-admin
        │   ├── neo4j-backup
        │   ├── neo4j-import
        │   ├── neo4j-shell
        │   └── tools
        │       ├── 2.x-config-migrator.jar
        │       └── cypher-shell-all.jar
        ├── certificates
        │   ├── neo4j.cert
        │   └── neo4j.key
        ├── conf
        │   ├── jmx.access
        │   ├── jmx.password
        │   └── neo4j.conf
        ├── data
        │   ├── databases
        │   │   └── graph.db
        │   │       ├── index
        │   │       ├── neostore
        │   │       ├── neostore.counts.db.a
        │   │       ├── neostore.counts.db.b
        │   │       ├── neostore.id
        │   │       ├── neostore.labelscanstore.db
        │   │       ├── neostore.labeltokenstore.db
        │   │       ├── neostore.labeltokenstore.db.id
        │   │       ├── neostore.labeltokenstore.db.names
        │   │       ├── neostore.labeltokenstore.db.names.id
        │   │       ├── neostore.nodestore.db
        │   │       ├── neostore.nodestore.db.id
        │   │       ├── neostore.nodestore.db.labels
        │   │       ├── neostore.nodestore.db.labels.id
        │   │       ├── neostore.propertystore.db
        │   │       ├── neostore.propertystore.db.arrays
        │   │       ├── neostore.propertystore.db.arrays.id
        │   │       ├── neostore.propertystore.db.id
        │   │       ├── neostore.propertystore.db.index
        │   │       ├── neostore.propertystore.db.index.id
        │   │       ├── neostore.propertystore.db.index.keys
        │   │       ├── neostore.propertystore.db.index.keys.id
        │   │       ├── neostore.propertystore.db.strings
        │   │       ├── neostore.propertystore.db.strings.id
        │   │       ├── neostore.relationshipgroupstore.db
        │   │       ├── neostore.relationshipgroupstore.db.id
        │   │       ├── neostore.relationshipstore.db
        │   │       ├── neostore.relationshipstore.db.id
        │   │       ├── neostore.relationshiptypestore.db
        │   │       ├── neostore.relationshiptypestore.db.id
        │   │       ├── neostore.relationshiptypestore.db.names
        │   │       ├── neostore.relationshiptypestore.db.names.id
        │   │       ├── neostore.schemastore.db
        │   │       ├── neostore.schemastore.db.id
        │   │       ├── neostore.transaction.db.0
        │   │       └── store_lock
        │   └── dbms
        │       ├── auth
        │       ├── auth.ini
        │       └── roles
        ├── import
        ├── lib
        │   ├── asm-5.2.jar
        │   ├── asm-analysis-5.2.jar
        │   ├── asm-tree-5.2.jar
        │   ├── asm-util-5.2.jar
        │   ├── bcpkix-jdk15on-1.53.jar
        │   ├── bcprov-jdk15on-1.53.jar
        │   ├── caffeine-2.3.3.jar
        │   ├── commons-beanutils-1.9.3.jar
        │   ├── commons-collections-3.2.2.jar
        │   ├── commons-compress-1.12.jar
        │   ├── commons-configuration-1.10.jar
        │   ├── commons-io-2.4.jar
        │   ├── commons-lang-2.6.jar
        │   ├── commons-lang3-3.5.jar
        │   ├── commons-logging-1.1.1.jar
        │   ├── commons-text-1.1.jar
        │   ├── concurrentlinkedhashmap-lru-1.4.2.jar
        │   ├── hazelcast-all-3.7.5.jar
        │   ├── jackson-core-asl-1.9.13.jar
        │   ├── jackson-jaxrs-1.9.13.jar
        │   ├── jackson-mapper-asl-1.9.13.jar
        │   ├── javax.servlet-api-3.1.0.jar
        │   ├── jersey-core-1.19.jar
        │   ├── jersey-multipart-1.19.jar
        │   ├── jersey-server-1.19.jar
        │   ├── jersey-servlet-1.19.jar
        │   ├── jetty-http-9.2.22.v20170606.jar
        │   ├── jetty-io-9.2.22.v20170606.jar
        │   ├── jetty-security-9.2.22.v20170606.jar
        │   ├── jetty-server-9.2.22.v20170606.jar
        │   ├── jetty-servlet-9.2.22.v20170606.jar
        │   ├── jetty-util-9.2.22.v20170606.jar
        │   ├── jetty-webapp-9.2.22.v20170606.jar
        │   ├── jetty-xml-9.2.22.v20170606.jar
        │   ├── jline-2.12.jar
        │   ├── jsr311-api-1.1.2.r612.jar
        │   ├── lucene-analyzers-common-5.5.0.jar
        │   ├── lucene-codecs-5.5.0.jar
        │   ├── lucene-core-5.5.0.jar
        │   ├── lucene-queryparser-5.5.0.jar
        │   ├── metrics-core-3.1.2.jar
        │   ├── metrics-graphite-3.1.2.jar
        │   ├── mimepull-1.9.3.jar
        │   ├── neo4j-auth-plugin-api-3.3.3.jar
        │   ├── neo4j-backup-3.3.3.jar
        │   ├── neo4j-bolt-3.3.3.jar
        │   ├── neo4j-browser-3.1.4.jar
        │   ├── neo4j-causal-clustering-3.3.3.jar
        │   ├── neo4j-causal-clustering-commercial-3.3.3.jar
        │   ├── neo4j-cluster-3.3.3.jar
        │   ├── neo4j-codegen-3.3.3.jar
        │   ├── neo4j-collections-3.3.3.jar
        │   ├── neo4j-com-3.3.3.jar
        │   ├── neo4j-command-line-3.3.3.jar
        │   ├── neo4j-common-3.3.3.jar
        │   ├── neo4j-configuration-3.3.3.jar
        │   ├── neo4j-consistency-check-3.3.3.jar
        │   ├── neo4j-csv-3.3.3.jar
        │   ├── neo4j-cypher-3.3.3.jar
        │   ├── neo4j-cypher-compiler-2.3-2.3.10.jar
        │   ├── neo4j-cypher-compiler-3.1-3.1.6.jar
        │   ├── neo4j-cypher-compiler-3.2-3.2.9.jar
        │   ├── neo4j-cypher-compiler-3.3-3.3.3.jar
        │   ├── neo4j-cypher-frontend-2.3-2.3.10.jar
        │   ├── neo4j-cypher-frontend-3.1-3.1.6.jar
        │   ├── neo4j-cypher-frontend-3.2-3.2.9.jar
        │   ├── neo4j-cypher-frontend-3.3-3.3.3.jar
        │   ├── neo4j-cypher-ir-3.2-3.2.9.jar
        │   ├── neo4j-cypher-ir-3.3-3.3.3.jar
        │   ├── neo4j-cypher-logical-plans-3.3-3.3.3.jar
        │   ├── neo4j-cypher-physical-planning-3.3.3.jar
        │   ├── neo4j-cypher-slotted-runtime-3.3.3.jar
        │   ├── neo4j-dbms-3.3.3.jar
        │   ├── neo4j-enterprise-cypher-3.3.3.jar
        │   ├── neo4j-enterprise-kernel-3.3.3.jar
        │   ├── neo4j-graph-algo-3.3.3.jar
        │   ├── neo4j-graph-matching-3.1.6.jar
        │   ├── neo4j-graphdb-api-3.3.3.jar
        │   ├── neo4j-ha-3.3.3.jar
        │   ├── neo4j-import-tool-3.3.3.jar
        │   ├── neo4j-index-3.3.3.jar
        │   ├── neo4j-io-3.3.3.jar
        │   ├── neo4j-jmx-3.3.3.jar
        │   ├── neo4j-kernel-3.3.3.jar
        │   ├── neo4j-logging-3.3.3.jar
        │   ├── neo4j-lucene-index-3.3.3.jar
        │   ├── neo4j-lucene-upgrade-3.3.3.jar
        │   ├── neo4j-management-3.3.3.jar
        │   ├── neo4j-metrics-3.3.3.jar
        │   ├── neo4j-primitive-collections-3.3.3.jar
        │   ├── neo4j-query-logging-3.3.3.jar
        │   ├── neo4j-resource-3.3.3.jar
        │   ├── neo4j-security-3.3.3.jar
        │   ├── neo4j-security-enterprise-3.3.3.jar
        │   ├── neo4j-server-3.3.3.jar
        │   ├── neo4j-server-commercial-3.3.3.jar
        │   ├── neo4j-server-enterprise-3.3.3.jar
        │   ├── neo4j-shell-3.3.3.jar
        │   ├── neo4j-ssl-3.3.3.jar
        │   ├── neo4j-udc-3.3.3.jar
        │   ├── neo4j-unsafe-3.3.3.jar
        │   ├── neo4j-values-3.3.3.jar
        │   ├── netty-3.9.9.Final.jar
        │   ├── netty-all-4.1.17.Final.jar
        │   ├── opencsv-2.3.jar
        │   ├── parboiled-core-1.1.7.jar
        │   ├── parboiled-scala_2.11-1.1.7.jar
        │   ├── rhino-1.7R4.jar
        │   ├── scala-library-2.11.12.jar
        │   ├── scala-reflect-2.11.12.jar
        │   ├── server-api-3.3.3.jar
        │   ├── shiro-cache-1.4.0.jar
        │   ├── shiro-config-core-1.4.0.jar
        │   ├── shiro-config-ogdl-1.4.0.jar
        │   ├── shiro-core-1.4.0.jar
        │   ├── shiro-crypto-cipher-1.4.0.jar
        │   ├── shiro-crypto-core-1.4.0.jar
        │   ├── shiro-crypto-hash-1.4.0.jar
        │   ├── shiro-event-1.4.0.jar
        │   ├── shiro-lang-1.4.0.jar
        │   ├── slf4j-api-1.7.7.jar
        │   └── slf4j-nop-1.7.22.jar
        ├── logs
        │   ├── debug.log
        │   ├── neo4j.log
        │   └── security.log
        ├── plugins
        └── run

  1. Copy the both graph.db folders
    ─ databases
    │ │ └── graph.db

to different folders in a local directory.

  1. In Neo4j desktop, click on Add Graph and click on Create Local Graph and enter name and password.Finally click on Create button. It creates a new db.

  1. Click on Manage button. Click on the drop down arrow on Open Folder:

2X_e_e588d34d9895f1ab99b382d67672380b9d5eff90.png

  1. Click on Import. On the screen right click on Import at the top of he screen. Select 'Installation..' folder.

2X_c_c64bd064ce9ed19a87a37b8adbecd4fd1e3ec3a7.png

  1. Scroll down to databases folder:

2X_c_c97427d70beb40904c68f70abb4fa3eb921af460.png

  1. Copy one of your graph.db folder in to this databases folder.Close this screen and click on start button. Once it shows running, then open browser and type match(n) return n to see if it shows your data.

  2. If there is no data, stop the db, delete the graph.db and copy the other graph.db in to databases folder and repeat step 6.

  3. If you want you can create another db (steps 2-6) and copy the second graph.db.

Hope this works.

Thanks @ameyasoft that worked! I'm back up and running again

I am glad, it worked!