-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Authentication failed. (MongoDB 3.2 and Laravel 5.3) #963
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
Comments
i actually replaced the database in options array to db mongodb' => [ |
Its worksUpgrade mongo driver dependence mongodb/mongodb 1.0.3 to 1.0.4 and update 'mongodb' => [
'driver' => 'mongodb',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 27017),
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'options' => [
'database' => env('DB_DATABASE') // sets the authentication database required by mongo 3
]
], |
It works...thanks a lot @uriel2707 |
i want to connect to remote server from my local machine but i am having Authentication failed error . i am able to connect to my local machine correctly but i cant connect to the remote server from my local machine i can connect to the remote host via ssh and specify the user and the pwd . any idea on how to connect to a remote sever please thanks in advance 'mongodb2' => [ |
@ssallah why are you using |
'options' => [ |
|
This error is exist .. I am able to connect through client but but not able to connect laravel mongodb driver .. authentication error is coming |
[MongoDB\Driver\Exception\AuthenticationException]
Authentication failed.
The text was updated successfully, but these errors were encountered: