Access Auth Protect MongoDB Database From Terminal
->mongo
->use databaseName
->db.auth("userName","userPassword");
Now you can access
->db.showCollections();
->use databaseName
->db.auth("userName","userPassword");
Now you can access
->db.showCollections();
Comments
Post a Comment