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

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.

主站蜘蛛池模板: 水城县| 崇礼县| 嘉义市| 颍上县| 逊克县| 皋兰县| 齐河县| 简阳市| 沙洋县| 巴彦淖尔市| 乳源| 呈贡县| 娄底市| 布尔津县| 兰州市| 岱山县| 炎陵县| 库尔勒市| 建平县| 巴塘县| 津南区| 额济纳旗| 苍梧县| 奇台县| 屯留县| 莫力| 威信县| 新邵县| 贵州省| 苍梧县| 武陟县| 广东省| 龙江县| 文水县| 德令哈市| 波密县| 龙州县| 临汾市| 南木林县| 炎陵县| 唐海县|