文章详情页
javascript - mongodb线上环境报错Db.prototype.authenticate method will...
浏览:250日期:2023-08-14 10:50:35
问题描述
项目部署到阿里云服务器ubuntu14.04时会发生一次重启,看日志说Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials.我在这里看到有人遇到同样的问题 https://github.com/Automattic...,说是mongoose的原因,我把mongoose升级到最新版本后还是报这个错。。。这是我连mongodb的链接:
mongodb://blog_runner:safeblog@127.0.0.1:27017/blog-app
blog_runner是具有读写权限的。如何解决呢?
问题解答
回答1:是与mongoose的版本有关系,我用4.7.0是没有这个提示的,升级到最新4.10.6就提示了
标签:
JavaScript
相关文章:
1. 为什么span的color非要内联样式才起作用?2. 小白问题getDay()3. html5 - H5做的手机分享页微信更新后,分享出去不再默认显示第一个图 作为缩略图4. golang - 用IDE看docker源码时的小问题5. docker start -a dockername 老是卡住,什么情况?6. 手机开发 - Android蓝牙模块连接后怎么接收数据?求助7. css - div设置float:left后高度设置自动会无效 ?8. 请问一下各位老鸟 我一直在学习独孤九贱 现在是在tp5 今天发现 这个系列视频没有实战9. 求救一下,用新版的phpstudy,数据库过段时间会消失是什么情况?10. 老师,请问我打开browsersync出现这个问题怎么解决啊?
排行榜

网公网安备