新版官网
文档
应用
扩展
市场
社区
云服务
搜索
系统检测到您的用户名不符合规范:
用户名
tp5 mongodb Authentication failed(认证失败)
浏览:3775
发布日期:2018/11/28
5.0.0 - 普通 - 未处理
tp5 think-mongo扩展 当使用普通用户连接数据库时会报:Authentication failed(认证失败),原因是 think-mongo扩展连接数据库认证的时候没有带上数据库名!
连接串为:mongodb://{username}:{password}@{hostname}:{hostport}
应改为:mongodb://{username}:{password}@{hostname}:{hostport}/{dbName}
评论(
)
后面还有
条评论,
点击查看>>
评论支持使用[code][/code]标签添加代码
您需要登录后才可以评论
登录
|
立即注册
提交Bug
天雨
积分:358
等级:LV2