-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
laravel8 设置mongodb之后抛出 'bcommand insert requires authentication' #3
Comments
收到~ |
@flaravel 你有尝试过在 |
@jiannei 配置了的,在mongo驱动中,没有兼容账号密码,我按照上面那样做,就可以链接了 |
@jiannei 建议在加一个自定义事件,方便我们做自定义的数据收集 |
可以提个 pull request 过来 🍻 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可能需要
将
$uri = "mongodb://{$config['host']}:{$config['port']}";
修改为
$uri = "mongodb://{$config['username']}:{$config['password']}@{$config['host']}:{$config['port']}";
The text was updated successfully, but these errors were encountered: