Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
-
Dev
*Location*: https://docs.mongodb.com/manual/reference/privilege-documents/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Referrer*: http://stackoverflow.com/questions/18179334/show-users-from-mongodb-in-php
*Screen Resolution*: 1366 x 768
Dev *Location*: https://docs.mongodb.com/manual/reference/privilege-documents/ *User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 *Referrer*: http://stackoverflow.com/questions/18179334/show-users-from-mongodb-in-php *Screen Resolution*: 1366 x 768
-
2
-
KANBAN BUCKET
-
true
Description
Details
-----------------------------------------------------------------------------
PHP Version 5.5.12
Compiler MSVC11 (Visual C++ 2012)
Architecture x64
mongodb driver: php_mongo-1.5.7-5.5-vc11-x86_64.dll
-----------------------------------------------------------------------------
Please give example how to connect to mongodb
I try this:
$m = new MongoClient ("mongodb://$user:$pass@{$host}:{$port}");
Or this:
$m = new MongoClient ("mongodb://{$host}:{$port}",[
'username' => $user,
'password' => $pass
]);
Error I have got:
Failed to connect to: localhost:27017: SASL Authentication failed on database 'admin': Authentication failed.
Attachments
Issue Links
- related to
-
DOCS-8719 SSL not mentioned in PHP driver docs
-
- Closed
-