laravel10 密码链接不上mongodb,无密码时候可以正常链接,怎么解决?
1. 运行环境
1). 当前使用的 Laravel 版本?
Laravel 10
//: <> (使用 php artisan --version
命令查看)
2). 当前使用的 php/php-fpm 版本?
PHP 版本:8.1
5). 相关软件版本
MongoDB
2. 问题描述?
Laravel 10 无密码链接mongodb 正常没有任何问题,打开密码连接后
报错下面内容
Bulk write failed due to previous MongoDB\Driver\Exception\AuthenticationException: Authentication failed.
确定账号和密码没有问题,远程Navicat也能密码连接上
推荐文章: