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 ?
RethinkDB losing data after restarting server
Asked Answered
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
© 2022 - 2024 — McMap. All rights reserved.
--directory
option lets you specify what folder your data is stored in. – Redoubtable