This is the 30th day of my participation in the August Text Challenge.More challenges in August
preface
- There was one a while back
node
Enough for the series, in sharing"Start from scratch" front-end node can be used to refer to north (5)⚡-- connect to database
Previously we needed to install a database. - For databases, you can choose
MySQL
andMongoDB
Here we useMongoDB
Demonstration.
Download and install
- We need to download two things altogether, one is the database service and the other is the visual interface
Database service
MongoDB
The services we can provide atDirecting a websitedownload
- Select the version for our own computer, click download, and we’ll get one
msi
Double-click the installation package to use it. - Click Custom Install after you agree.
- Remember to select your own address after the next step.
- He will help us to automatically generate these two files, just ignore him and go straight to the next step.
- This is asking you if you want to install the visual interface together, so we won’t do that for now and we’ll install it later.
- After the installation, if a warning pops up, ignore it and ignore it.
- Now our
MongoDB
It’s installed.
- We can see inside this folder is made by
data
andlog
Folder, in the old version we need to add new files, now he helps us to download but we still need to indata
Add adb
Folder.
mkdir D:\mongoDB\data\db
Copy the code
- So let’s go into
bin
Directory to performmongod -dbpath D:\mongoDB\data\db
This path is stored on your computerdb
The path. - This step is to start the database service, as long as we need to use the database command window can not be closed.
- Next open another terminal window to enter
bin
Directory of inputmongo
So that we can use it normallyMongoDB
.
- We open
http://localhost:27017/
You can see the service is already running!!
Visual interface
- Of course, for future convenience, we can download a visual interface
MongoDB Compass
. - You can download it in MongoDB Compass.
- After downloading is a compressed package directly unzip can be used, double click
MongoDBCompass.exe
Can. - Go in and just click the link. Ours
MongoDB
The installation is complete.
👋 is at the end
- I shared it briefly this time
MongoDB
Download and install, I hope to help students in need. - If you feel that this article has helped to your words might as well 🍉 attention + likes + favorites + comments + forward 🍉 support yo ~~😛 your support is the biggest power OF my update.
🌅 past wonderful
A “Sword breath” loaded 🌪️
A “water” button 💧
Product Manager: Can you get the word cloud moving?
Fix echarts map rotation highlighting ⚡