Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RethinkDB losing data after restarting server

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 ?

like image 325
Prateek Narendra Avatar asked Feb 04 '15 19:02

Prateek Narendra


1 Answers

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
like image 138
coffeemug Avatar answered Oct 29 '22 12:10

coffeemug