Created
February 20, 2014 09:21
-
-
Save aravindgv/9109881 to your computer and use it in GitHub Desktop.
mongod how to login and run some basic commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@jb-dev ~# mongo MongoDB shell version: 2.4.8 | |
connecting to: test | |
use admin | |
switched to db admin | |
db.auth(‘jeeto’,‘xxxx’) | |
1 | |
show dbs | |
show collections | |
system.indexes | |
system.users | |
db.getCollectionNames() | |
[ “context”, “system.indexes”, “user_progress”, “user_sessions” ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment