Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mongo_config_auth [2019/10/30 09:29] – [Enable Authentication] andonovj | mongo_config_auth [2019/10/30 17:29] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 118: | Line 118: | ||
</ | </ | ||
- | P.S. Don't forget to have username and password beforehand :) | ||
- | |||
- | <sxh bash> | ||
- | db.createUser( | ||
- | { | ||
- | user: " | ||
- | pwd: " | ||
- | roles: [ { role: " | ||
- | } | ||
- | ) | ||
- | </ | ||
=====Connection===== | =====Connection===== | ||
In order to connect, we have to enter the username and password as follows: | In order to connect, we have to enter the username and password as follows: |