How to get mongodb url for discord bot ?
Published: 2021-07-16 18:06:08


 Credits to  msv 
# Join our discord server if u don't understand 😑
[Discord](https://dsc.gg/cwkhan)
# Mongo Database Setup 🌿

- Come on official MongoDB website. [Register](https://account.mongodb.com/account/register) or [Login](https://account.mongodb.com/account/login) into your account.
- After registration, you will be transferred to another page. You need to click on the green button, then write the name of your project in the window that opens (no matter what you write, this will not affect the work.) Click on the green button. Examples:

![](https://cdn.discordapp.com/attachments/667072123914813444/686353659650768939/IMG_20200309_035249.png)

![](https://cdn.discordapp.com/attachments/667072123914813444/686353659331870865/IMG_20200309_035651.png)

- After that, you will be asked to enter Add Members and Set Permissions. At this stage, you can just catch a cold, citing the green button (it plays no role.)

![](https://cdn.discordapp.com/attachments/667072123914813444/686353658962640904/IMG_20200309_035747.png)

- And so, we have created our project, now let's create a "cluster". Click on the **Build a Cluster** button, then in the window that opens, simply click the green **Create cluster** button (You can also change the name of the cluster if you wish, by default it is "Cluster0")

![](https://cdn.discordapp.com/attachments/667072123914813444/686353658648199200/IMG_20200309_035819.png)

![](https://cdn.discordapp.com/attachments/667072123914813444/686353658299809807/IMG_20200309_035851.png)

- After you clicked on the **Create cluster** button. You should wait 1-3 minutes.

![](https://cdn.discordapp.com/attachments/667072123914813444/686353627912208447/IMG_20200309_035925.png)

- After our cluster has been created, you will see this picture:

![](https://cdn.discordapp.com/attachments/667072123914813444/686353627736178702/IMG_20200309_040013.png)

- Okay! The floor is done. Next, go to the **Database Access** tab. Screenshot:

![](https://cdn.discordapp.com/attachments/667072123914813444/686353627509817527/IMG_20200309_040207.png)

- After switching to this tab, we see a green button with the inscription **ADD NEW USER**, in the window that opens, set the rights "Atlas Admin". Then write your name and the desired password (it is worthwhile to understand that through these data you will enter the database. So write down your password on a piece of paper or notebook.) Save! Screenshot:

![](https://cdn.discordapp.com/attachments/667072123914813444/686353627320680467/IMG_20200309_040424.png)

- Now. Go to the **Network Access** tab.

![](https://cdn.discordapp.com/attachments/667072123914813444/686353626209452081/IMG_20200309_042002.png)

- We see a green button with the inscription ***ADD IP ADDRESS***, poke. In the window that opens, in the line "**Whitelist Entry**", write the value ***0.0.0.0/0***. A comment is optional. We save.

![](https://cdn.discordapp.com/attachments/667072123914813444/686353627106902047/IMG_20200309_040548.png)

<br><br><br><br>

- [🎉] Congratulations! We have created a base, now we need a link to connect to the base. To do this, again go to the **Clusters** tab

![](https://cdn.discordapp.com/attachments/667072123914813444/686353626029228097/IMG_20200309_042035.png)

We see our newly created cluster. We find a button labeled CONNECT, press it. A window opens, click the second section ("Connect Using MongoDB Compass"). After that you will see the copy button (this link cannot be shown to people. If they find out the name and password from the database, they will be able to manage your database.)