DataGrip connects to MongoDB

Today, I found a database software, DataGrip, and I think it’s pretty good, so I’ll try to connect to MongoDB (if there is a problem with the installation of MongoDB, please refer to my article: MongoDB Windows installation ). I will share with you here. There are pictures and pictures. The truth, let's look at it together.

First of all, we choose the following picture:
Insert picture description here
Next, if MongoDB like me does not have a user and password set, you can skip entering the user and password, as shown in the following picture: After the
Insert picture description here
connection is successful, the left sidebar will display, and the right will appear. console (code console), as shown in the figure below:
Insert picture description here
Below, I use the example database for a simple demonstration, as shown in the figure below: The
Insert picture description here
running result is as shown in the figure below:
Insert picture description here
When multiple database statements are executed, the following figure appears: the
Insert picture description here
first one is selected for execution For the currently selected database statement, the second one executes all database statements, and I choose the second one. The running result is as follows:
Insert picture description here
Then, query the data of the data table (collection) example, as shown in the figure below: The
Insert picture description here
running result is as follows:
Insert picture description here
Insert data into the data table (collection) example, as shown in the figure below:
Insert picture description here
Re-query the collection (data table) example again, and run The result is as follows:
Insert picture description here
Regarding the connection to MongoDB this time, I was lucky enough to connect and introduced some simple MongoDB operations. I wish everyone a smooth connection like me.

Finally, thank you all for coming to watch my article. There may be many improprieties in the article, and I hope to point out He Haihan.

Guess you like

Origin blog.csdn.net/weixin_43408020/article/details/113801424