原文:nodejs连接MongoDB数据库运行时报错:(node:2728) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version.

错误提示如下: node: 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 opti ...

2020-10-20 09:43 0 1429 推荐指数:

查看详情

NodeJS连接MongoDB数据库时报错

今天第一次尝试连接MongoDB数据库,具体步骤也很简单。 首先,通过NodeJS运行环境安装MongoDB包,进入要安装的目录,执行语句 安装成功后,通过如下语句测试与数据库建立连接几关闭数据库node运行环境中运行以上代码所在文件,出现如下所示错误 ...

Fri May 13 23:47:00 CST 2016 0 2985
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM