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

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.

主站蜘蛛池模板: 梧州市| 武川县| 呼玛县| 思南县| 连州市| 文山县| 渭源县| 丹棱县| 扶沟县| 旺苍县| 绵阳市| 吉首市| 扎兰屯市| 巫山县| 吉木乃县| 炉霍县| 会昌县| 揭东县| 阿坝县| 徐水县| 昌乐县| 沙洋县| 平凉市| 阿合奇县| 台北市| 乌拉特后旗| 丹江口市| 鱼台县| 瑞金市| 扎囊县| 巴林右旗| 海口市| 灌南县| 仲巴县| 阳江市| 洞口县| 莱西市| 高碑店市| 兴文县| 金平| 江津市|