javascript - mongodb线上环境报错Db.prototype.authenticate method will...
PHP中文网
PHP中文网 2017-06-19 09:07:22
0
1
1788

项目部署到阿里云服务器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是具有读写权限的。如何解决呢?

PHP中文网
PHP中文网

认证高级PHP讲师

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!