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 ?

Prateek Narendra
  • 1,837
  • 5
  • 38
  • 67

1 Answers1

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
coffeemug
  • 1,338
  • 11
  • 10