How to Get mongodb_url ?

How to Get mongodb_url ?

astra lincoln

MONGODB_URL Guide

  • First, Go to cloud.mongodb.com then Sign Up there.
  • Login or Sign Up (Create an Account) there. If you don’t have an Account!
  • After Login, You’ll be on their Dashboard Page.
step 1


  • Choose an option Build a Cluster (as the shown picture below)
  • Now, You’ll see Pricing Plan section.
step 2


  • Here, We going to use Free Plan for our userbot
  • After that, You have to select Region and Server. Where your Database server will host.
step 3


Tips: Select the Nearest server from your location so it won't take long time to connect
  • At last, Click on Create Cluster.
step 4


You have to wait for some time at this Page while your Database is being created.
  • After Created, Click on Network Access (Can see this option under Security section of Image Below)
step 5
  • You will see an option Add IP Adress. Click on that 
  • Now, Allow Access From Anywhere. Then Confirm


step 6
Wait until the Status changes from Pending to Active 
  • Go Back to Cluster option and Click on Connect.
  • Now. Fill any random Username and Password
Note: Don't use Special character in your Password like @#$% etc. 
  • After filled, Click on Create MongoDB User.
  • There you are, Select Choose a connection method
  • Choose Connect Your Application
  • Now, Select DRIVER as Python and VERSION as 3.6 or later then Copy the Database link Shown below
mongodb+srv://<username>:<password>@mongos0.example.com/<dbname>?retryWrites=true&w=majority
  • Replace <password> with your given Password and <dbname> with “test” or “cluster0” and remove <> symbols.

That’s it. You have got your MONGODB_URL var value.


finished


Have an question about this post ?, Contact us in our Support Chat

Report Page