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 ?
Asked
Active
Viewed 947 times
7
-
1How are you starting rethinkdb? The `--directory` option lets you specify what folder your data is stored in. – Etienne Laurin Feb 04 '15 at 19:48
1 Answers
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 containsrethinkdb_data
. For example,rethinkdb -d /path/to/data/directory/rethinkdb_data

coffeemug
- 1,338
- 11
- 10