Can't authenticate on mongodb with PHP

后端 未结 2 1160
Happy的楠姐
Happy的楠姐 2020-12-10 06:16

What i\'ve done:

Enabled authentication in /etc/mongod.conf :

auth = true

Created the first user from

2条回答
  •  再見小時候
    2020-12-10 06:32

    Problem solved: apparenty it was caused by a problem/bug in the PHP mongo driver version 1.4

    I've upgraded the driver to version 1.6 with:

    pecl upgrade mongo
    

    and now the authentication works.

提交回复
热议问题