==========================================
Connecting to an existing MongoDB database
==========================================


If you already have a MongoDB server running, you can connect to it by
setting the MONGO_URL configuration variable::

    anaconda-server-config --set MONGO_URL 'mongodb://<hostname>'

For more information, see the `MongoDB Connection String
URI Format
<http://docs.mongodb.org/manual/reference/connection-string/>`_
manual.

See also :doc:`config-mongodb-authentication`.
