官术网_书友最值得收藏!

Why use the mongo shell?

A fair question to ask is why use the mongo shell? After all, given that the wonderful graphical utility MongoDB Compass is provided free-of-charge, why bother with the shell? The answer lies in the very nature of Compass; it's graphical in nature, which means you are out of luck when a customer in another city (or even another country!) calls you late on a Friday to tell you the database is down. 

Although Compass can connect remotely, its requirements are much more demanding, and you would most likely need the support of the customer IT department to successfully connect. The mongo shell, on the other hand, is text based and only requires a simple, relatively common SSH connection to a server on the customer site.

Another massive advantage of the mongo shell over Compass is that the shell can run scripts. Getting back to the late Friday Emergency scenario, imagine being able to upload and run a rescue script over an SSH connection, rather than trying to perform manual surgery on the customer's database using Compass.

主站蜘蛛池模板: 临安市| 黄冈市| 双桥区| 磐石市| 武功县| 桐城市| 桃园市| 灵璧县| 水城县| 台州市| 奉节县| 体育| 黎川县| 普兰县| 克什克腾旗| 原平市| 汝州市| 易门县| 闸北区| 辉县市| 成安县| 铁力市| 杭锦后旗| 西峡县| 邹城市| 定安县| 南涧| 任丘市| 炎陵县| 谷城县| 绥阳县| 文昌市| 汝州市| 太仆寺旗| 山阴县| 广东省| 海安县| 昌图县| 深州市| 宜宾市| 龙南县|