Database Navigation
Database Navigation
MONGODB SHELL NAVIGATION
Commands
mongo
mongo "mongodb://localhost:27017"show databases;use DATABASE;show tables;db.TABLE.find() (Dump everything from table)> use <DATABASE>;
> show tables;
> show collections;
> db.system.keys.find();
> db.users.find();
> db.getUsers();
> db.getUsers({showCredentials: true});
> db.accounts.find();
> db.accounts.find().pretty();
> use admin;
> show dbs # List databases
> use <db> # Switch to the desired database
> show collections # List collections in the selected database
> db.<collection>.find() # Dump the contents of a collection
> db.<collection>.count() # Get the number of records in the collection
> db.current.find({"username":"admin"}) # Search for a specific userMYSQL SHELL NAVIGATION
For root authentication there is a small detail:
POSTGRESQL SHELL NAVIGATION
REDIS-CLI SHELL NAVIGATION
KPCLI SHELL NAVIGATION (ALTERNATIVE: KEEPASS2 WHICH IS A GUI)
MSSQL SHELL NAVIGATION (sqsh)
SQLCMD
SQLITE3
OPENQUERY
Last updated