文章详情页
javascript - mongodb线上环境报错Db.prototype.authenticate method will...
浏览:311日期: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. javascript - 百度坐标,返回目标附近有哪些坐标2. javascript - 关于jsp中嵌入js代码的问题3. javascript - 有什么兼容性比较好的办法来判断浏览器窗口的类型?4. javascript - 一个JS多元运算符的问题5. javascript - html5多个label中其中一个触发change,如何判断是哪一个出发了change6. javascript - 判断用户网络环境7. clone - git sourceTree克隆仓库时,都不停弹出Password Required弹窗,即时输入正确的git账号密码还是弹出8. python - 怎么通过vpn连内网ftp?9. angular.js - angurlarJS的安卓的微信端中用加载ngCookies会出错的问题10. python 正则表达式提取
排行榜

网公网安备