Skip to content

laravel8 设置mongodb之后抛出 'bcommand insert requires authentication'  #3

@flaravel

Description

@flaravel

可能需要
$uri = "mongodb://{$config['host']}:{$config['port']}";
修改为
$uri = "mongodb://{$config['username']}:{$config['password']}@{$config['host']}:{$config['port']}";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions