我想打开我的MongoDB罗盘数据库,我点击了界面中的connect
按钮;
该界面不会导致我进入我的数据库!当我通过我的终端在VCStudio中运行我的项目时!它显示此错误!
node app.js
(node:8840) DeprecationWarning: current Server Discovery and Monitoring
engine is deprecated, and will be removed in a future version. To use the
new Server Discover and Monitoring engine, pass option {
useUnifiedTopology: true } to the MongoClient constructor.
Server started at port : 3000
Error in MongoDB connection:{
"name": "MongoNetworkError",
"errorLabels": [
"TransientTransactionError"
]
}
答案 0 :(得分:0)
我正在用VS代码打开cmd线和集成端子!!我只保留一个,然后打开了任务管理器!我启动了MongoDB服务(我重新打开了MongoDB Compass界面),并且数据库显示正确!