From 7a7829ac10f5a8418dc2bcb57770005470db50a1 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 5 Feb 2017 20:03:17 +0200 Subject: [PATCH] Add commands --- Export-Docker-Mongo-Data.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Export-Docker-Mongo-Data.md b/Export-Docker-Mongo-Data.md index ce16563..37e65ed 100644 --- a/Export-Docker-Mongo-Data.md +++ b/Export-Docker-Mongo-Data.md @@ -33,7 +33,7 @@ https://docs.mongodb.com/manual/reference/mongo-shell/ like this: ```bash -> mongo +> mongo <==== START MONGO CLI MongoDB shell version: 3.2.7 connecting to: test 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] ** We suggest setting it to 'never' 2016-06-25T11:39:55.913+0000 I CONTROL [initandlisten] -> show dbs +> show dbs <=== SHOW DATABASES admin 0.034GB local 0.000GB -> use admin +> use admin <=== CHANGE TO USE ADMIN DATABASE switched to db admin -> show collections +> show collections <=== SHOWS TABLES activities boards card_comments @@ -66,7 +66,9 @@ meteor-migrations meteor_accounts_loginServiceConfiguration presences users -> exit +> db.users.find() <=== LISTS ALL USERS +(list of all users here) +> exit <=== EXIT MONGO CLI ``` 5) Go to /data directory: