Skip to content

Commit

Permalink
Merge pull request #1486 from voxel51/admin-db-docs
Browse files Browse the repository at this point in the history
Adding admin DB note to docs
  • Loading branch information
brimoor authored Dec 28, 2021
2 parents c2819ea + 1afc79f commit b9b5b06
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/source/user_guide/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,23 @@ or you can set the following environment variable:
export FIFTYONE_DATABASE_URI=mongodb://[username:password@]host[:port]
If you are running MongoDB with authentication enabled (the `--auth` flag),
FiftyOne must connect as a root user.

You can create a root user with the Mongo shell as follows:

.. code-block:: shell
mongo --shell
> use admin
> db.createUser({user: "username", pwd: passwordPrompt(), roles: ["root"]})
You must also add `?authSource=admin` to your database URI:
.. code-block:: text
mongodb://[username:password@]host[:port]/?authSource=admin
.. note::
**Apple Silicon users**: MongoDB does not yet provide a native build for
Expand Down

0 comments on commit b9b5b06

Please sign in to comment.