T
T
TostPOST2020-02-28 00:09:11
MongoDB
TostPOST, 2020-02-28 00:09:11

Why is mongodb not working on openserver?

I recently started using mongodb instead of mysql, I need to make sure that unauthorized users are not given access to the database. I read the documentation, it says that you need to put

security:
    authorization:enabled

But as soon as I put these lines in the configuration file, the server does not start immediately, and without them, anyone can take information from the database. How can I make these settings work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2020-02-28
@nokimaro

Well, you enabled authorization. Have you created a login user and password?
When connecting, respectively, it is necessary to transfer the username and password.
For these settings to work, as well as how to add a user and password for authorization, you can read here
https://docs.mongodb.com/manual/core/authentication/
https://medium.com/mongoaudit/how-to-enable- authen... Just
like in the MySQL you mentioned. You need to create a user and password, and give the user access to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question