Use navicat for mongodb to connect to mongodb
Install navicat for mongodb
In the detailed explanation of the whole process of mongodb7.0 installation above , we said that we did not check it during installation. install mongodb compass
We use navicat for visual database management.
Navicat for mongodb download address . We can choose the trial version to download. You can choose
to install it during installation.D盘
After the installation is complete, you will see this page, as shown below:
Connect to mongodb
Click on the connection in the upper left corner and select mongodb
Enter the connection name student
, which we db.js
created in the file
. One thing to note here is that our default port number is. If the 27017
connection is successful, you can see that there is one more and student
we can see the document inside. Got it