Tmirror

How To get MongoDB Database Url


How To get MongoDB Database Url

Here show you option to how to create MongoDB database Url and how can we Use it step by step explaned.

Here most useful tutorial discuss with you that's how to get MongoDB Url. This MongoDB url used to so many telegram bots.

What's MongoDB ?

MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License.

How to Create MongoDB Url?

  • 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.
  • Choose an option Build a Cluster (as the shown picture below)
  • Now, You’ll see Pricing Plan section.

  • 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.

Tips: Select the Nearest server from your location so it won't take long time to connect

  • At last, Click on Create Cluster.

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 Above Image)
  • You will see an option Add IP Adress. Click on that 
  • Now, Allow Access From Anywhere. Then Confirm.

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 MONGO_DB_URL Var value.


comments powered by Disqus