September 2017
Intermediate to advanced
466 pages
9h 33m
English
If you want to use MongoDB on your Go applications, it would be very practical to know how to perform some basic administrative tasks on a MongoDB database.
Most of the tasks presented in this section will be performed from the Mongo shell, which starts by executing the mongo command. If no MongoDB instance is running on your Unix machine, you will get the following output:
$ mongo MongoDB shell version v3.4.5 connecting to: mongodb://127.0.0.1:27017 2017-07-06T19:37:38.291+0300 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused 2017-07-06T19:37:38.291+0300 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection ...
Read now
Unlock full access