D
D
dufrein20132021-03-27 18:57:19
MongoDB
dufrein2013, 2021-03-27 18:57:19

How to create database on mongodb locally?

good afternoon, a question on monge:
Windows is installed, wsl ubuntu subsystem is on it.
I worked with mongo for a long time, there was a training base, collections (there was one training project, the data itself is unimportant), the disk died, put in a new disk, installed mongo, node, mongodb, but I don’t remember what to do next.
How now to recreate the same basis? just trying to run mongod in the console gives an error that there is no / data / db, just creating an empty folder at this address only led to the error WT_PANIC: WiredTiger library panic and other similar

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dufrein2013, 2021-03-28
@dufrein2013

everything turned out to be simple, it was necessary to add the name of the replica to the mongo config file:
replication:
replSetName:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question