Spaces:
reon314
/
Runtime error

llm / docs /install /mongodb.md
Marco Beretta
LibreChat upload repo
3b6afc0
|
raw
history blame
3.53 kB

Set Up an Online MongoDB Database

Create an account

Create a project

  • Once you have set up your account, create a new project and name it:

    image

    image

Build a database

  • Now select Build a Database:

    image

Choose your cloud environment

  • Select the free tier:

    image

Name your cluster

  • Name your cluster (leave everything else default) and click create:

    image

Database credentials

  • Enter a user name and a secure password:

    image

Select environment

  • Select Cloud Environement:

    image

Complete database configuration

  • Click Finish and Close:

    image

Go to your database

  • Click Go to Databases:

    image

Network access

  • Click on Network Access in the side menu:

    image

Add IP adress

  • Add a IP Adress:

    image

Allow access

  • Select Allow access from anywhere and Confirm:

    image

Get your connection string

  • Select Database in the side menu

    image

  • Select Connect:

    image

  • Select the first option (Drivers)

    image

  • Copy the connection string:

    image

  • Make sure to replace <password> with the database password you created in the "database credentials" section above. Do not forget to remove the < > around the password. Also remove &w=majority at the end of the connection string.

  • example:

mongodb+srv://fuegovic:1Gr8Banana@render-librechat.fgycwpi.mongo.net/?retryWrites=true

Note: If you're still having trouble, before creating a new issue, please search for similar ones on our #issues thread on our discord or our troubleshooting discussion on our Discussions page. If you don't find a relevant issue, feel free to create a new one and provide as much detail as possible.