This is the 30th day of my participation in the August Text Challenge.More challenges in August

preface

  • There was one a while backnodeEnough for the series, in sharing"Start from scratch" front-end node can be used to refer to north (5)⚡-- connect to databasePreviously we needed to install a database.
  • For databases, you can chooseMySQLandMongoDBHere we useMongoDBDemonstration.

Download and install

  • We need to download two things altogether, one is the database service and the other is the visual interface

Database service

  • MongoDBThe services we can provide atDirecting a websitedownload

  • Select the version for our own computer, click download, and we’ll get onemsiDouble-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 ourMongoDBIt’s installed.

  • We can see inside this folder is made bydataandlogFolder, in the old version we need to add new files, now he helps us to download but we still need to indataAdd adbFolder.
mkdir D:\mongoDB\data\db
Copy the code
  • So let’s go intobinDirectory to performmongod -dbpath D:\mongoDB\data\dbThis path is stored on your computerdbThe 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 enterbinDirectory of inputmongoSo that we can use it normallyMongoDB.

  • We openhttp://localhost:27017/You can see the service is already running!!

Visual interface

  • Of course, for future convenience, we can download a visual interfaceMongoDB Compass.
  • You can download it in MongoDB Compass.

  • After downloading is a compressed package directly unzip can be used, double clickMongoDBCompass.exeCan.
  • Go in and just click the link. OursMongoDBThe installation is complete.

👋 is at the end

  • I shared it briefly this timeMongoDBDownload 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 ⚡