You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello...
I have seen u have implement authentication for mongo Database.
But now one more authentication is required inside database we used separate user and credential for collection
So for example right now i have not assign any user/password for database but after that i have set for my one database with collection password.
So i think Need to implement that feature.
See right now compare with php so u have set that user name /password in nginx conf.
$m = new Mongo('mongodb://username:password@localhost/testlogs');
But after that also one authentication required
So that one is db->authenticate line. and in mogo db format it is db.authenticate(user,password)
$conn = new Mongo("mongodb://hello.myhostname.com:27017"); // Connect
$db = $conn->mydb; // Select DB
$db->authenticate('myuser', 'mypwd' );
Thanks
The text was updated successfully, but these errors were encountered:
Hello...
I have seen u have implement authentication for mongo Database.
But now one more authentication is required inside database we used separate user and credential for collection
So for example right now i have not assign any user/password for database but after that i have set for my one database with collection password.
So i think Need to implement that feature.
See right now compare with php so u have set that user name /password in nginx conf.
$m = new Mongo('mongodb://username:password@localhost/testlogs');
But after that also one authentication required
So that one is db->authenticate line. and in mogo db format it is db.authenticate(user,password)
Thanks
The text was updated successfully, but these errors were encountered: