Hello! Well, i started with mongodb localhost yesterday (i use mongodb cloud has 8 months), so i opened the local server with mongod, developed and about 20:00 hours i think “and if i run the mongodb server when my node process start?” so i did it, i stopped my local server, and after i reboot, all data are total cleared, the database is as the first time who i used… I tried to do it again and it doenst happen more, it appears isnt common, but happened, and i want to know because, to prevent this happen again
Welcome to the MongoDB Community Forums @Cleiton_N_A !
Please provide some more information on your environment:
version of MongoDB server
O/S version
command-line or steps you are using to start the MongoDB server
is your MongoDB server accessible from remote computers?
One likely possibility is that you started the MongoDB with different options (for example, manual invocation as mongod versus starting or stopping with a service definition) that resulted in different dbPath settings being used.