I have installed the mongodb database, node, mongoose module, and also downloaded the mongo plug-in in webstorm,
But I found that every time I have to enter mongod--dbpath=path in the mongo shell command line to manually start the database before I can successfully connect to webstorm
How can I start and connect directly?
Download plugin
mongo
Click
shift
twice to searchshift
搜索mongo
,你会看到Mongo Explorer
, you will seeMongo Explorer
, select it and it will appear on the right side of the window.You can see the set flag at the top of the right window, click it, and then you go to configure.
After entering the configuration page, there is a green plus sign on the right, as shown below, write your database name
, and click Test.
As shown in the picture below on the right side, it still exists after restarting.
Use
show dbs;
to view.I use
phpstorm
.ps: Two clicks
Shift
Very useful, anyone who uses it will know!