Add commands

Lauri Ojansivu 2017-02-05 20:03:17 +02:00
parent 371ac11138
commit 7a7829ac10

@ -33,7 +33,7 @@ https://docs.mongodb.com/manual/reference/mongo-shell/
like this: like this:
```bash ```bash
> mongo > mongo <==== START MONGO CLI
MongoDB shell version: 3.2.7 MongoDB shell version: 3.2.7
connecting to: test connecting to: test
Server has startup warnings: Server has startup warnings:
@ -44,12 +44,12 @@ Server has startup warnings:
2016-06-25T11:39:55.913+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. 2016-06-25T11:39:55.913+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-06-25T11:39:55.913+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2016-06-25T11:39:55.913+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-06-25T11:39:55.913+0000 I CONTROL [initandlisten] 2016-06-25T11:39:55.913+0000 I CONTROL [initandlisten]
> show dbs > show dbs <=== SHOW DATABASES
admin 0.034GB admin 0.034GB
local 0.000GB local 0.000GB
> use admin > use admin <=== CHANGE TO USE ADMIN DATABASE
switched to db admin switched to db admin
> show collections > show collections <=== SHOWS TABLES
activities activities
boards boards
card_comments card_comments
@ -66,7 +66,9 @@ meteor-migrations
meteor_accounts_loginServiceConfiguration meteor_accounts_loginServiceConfiguration
presences presences
users users
> exit > db.users.find() <=== LISTS ALL USERS
(list of all users here)
> exit <=== EXIT MONGO CLI
``` ```
5) Go to /data directory: 5) Go to /data directory: