Skip to content

exception 'MongoDB\Driver\Exception\AuthenticationException' with message 'Authentication failed.' #171

@liujingyu

Description

@liujingyu
$client = new MongoDB\Client("mongodb://localhost:27017/database", ['username' => 'user', 'password' => 'passwd', 'db' => 'admin']);

manual: http://mongodb.github.io/mongo-php-library/api/source-class-MongoDB.Client.html#15-167

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions