RethinkDB losing data after restarting server
Asked Answered
C

1

7

I save my data on RethinkDB Database. As long as I dont restart the server, all is well. But when I restart, it gives me an error saying database doesnt exist, although the folder and data does exist in folder rethinkdb_data. What is the problem ?

Choochoo answered 4/2, 2015 at 19:4 Comment(1)
How are you starting rethinkdb? The --directory option lets you specify what folder your data is stored in.Redoubtable
T
11

You're almost certainly not losing data, you're just starting RethinkDB without pointing it to the data. Try the following:

  • Start RethinkDB from the directory that contains the rethinkdb_data directory.
  • Alternatively, pass the -d flag to RethinkDB to point it to the directory that contains rethinkdb_data. For example, rethinkdb -d /path/to/data/directory/rethinkdb_data
Truancy answered 4/2, 2015 at 19:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.