Docs HomeMongoDB Compass

Interface Settings接口设置

You can customize MongoDB Compass to meet your specific needs on the Compass interface. 您可以在Compass界面上自定义MongoDB Compass以满足您的特定需求。Some options are only available in the Settings panel.某些选项仅在“设置”面板中可用。

If you have already configured Compass settings on the command line or in a configuration file, you cannot modify those settings in the Compass interface.如果已经在命令行或配置文件中配置了Compass设置,则无法在Compass界面中修改这些设置。

Settings Panel Location设置面板位置

To find the Compass Settings panel, open the MongoDB Compass system menu and select Settings.要找到Compass “设置”面板,请打开MongoDB Compass系统菜单,然后选择“设置”。

Settings panel location under the MongoDB Compass system menu

Alternatively, you can use keyboard shortcuts to open the Settings panel:或者,您可以使用键盘快捷键打开“设置”面板:

  • Windows / Linux: Ctrl + ,
  • Mac: + ,

Settings设置

You can configure the following settings on the MongoDB Compass interface:您可以在MongoDB Compass界面上配置以下设置:

Setting背景Category类别Definition释义
Set Read-Only Mode设置只读模式General通用Remove all write and delete capabilities on Compass.删除Compass上的所有写入和删除功能。
To learn more, see Restrict Write Operations to MongoDB.要了解更多信息,请参阅将写入操作限制到MongoDB
Enable MongoDB Shell启用MongoDB外壳General通用Enable or disable the embedded MongoDB Shell on Compass.启用或禁用Compass上的嵌入式MongoDB Shell。
If you select Set Read-Only Mode, Compass automatically disables the Enable MongoDB Shell setting.如果选择“设置只读模式”,Compass会自动禁用“启用MongoDB Shell”设置。
To learn more, see Disable the Embedded MongoDB Shell.要了解更多信息,请参阅禁用嵌入式MongoDB Shell

Protect Connection String Secrets保护连接字符串机密General通用Hide credentials in your connection string. Passwords in connection strings are displayed as *****隐藏连接字符串中的凭据。连接字符串中的密码显示为*****
To learn more, see Hide Credentials in Your Connection String.要了解更多信息,请参阅在连接字符串中隐藏凭据
Show Kerberos Password Field显示Kerberos密码字段General通用Show or hide the Kerberos password field on the Compass connection form.显示或隐藏Compass连接表单上的Kerberos密码字段。
To learn more, see Display the Kerberos Password Field.要了解更多信息,请参阅显示Kerberos密码字段
Upper Limit for maxTimeMS for Compass Database OperationsCompass数据库操作的maxTimeMS上限General通用Specify an upper time limit for all Compass database operations.指定所有Compass数据库操作的时间上限。
Enable DevTools启用DevToolsGeneral通用Enable Chrome DevTools.启用Chrome开发工具。
To learn more, see Toggle Chrome DevTools.要了解更多信息,请参阅切换Chrome开发工具
Install Compass as URL Protocol Handler将Compass安装为URL协议处理程序General通用Register Compass as a handler for mongodb:// and mongodb+srv:// URLs.将Compass注册为mongodb://和mongodb+srv:// URL的处理程序。
If Install Compass as URL Protocol Handler is enabled, you can open Compass by navigating to a mongodb:// or mongodb+srv:// URL in your browser.如果启用了“将Compass安装为URL协议处理程序”,则可以通过导航到浏览器中的mongodb://或mongodb+srv://URL来打开Compass。
By default, Install Compass as URL Protocol Handler is enabled. You cannot toggle this option on Linux. 默认情况下,“将Compass安装为URL协议处理程序”处于启用状态。您不能在Linux上切换此选项。You can toggle this setting only on Windows or macOS.您只能在Windows或macOS上切换此设置。

Sync with OS与操作系统同步Theme主题Automatically switch between light and dark themes based on your OS settings.根据操作系统设置自动在浅色和深色主题之间切换。
Light Mode浅色模式Theme主题Use a light theme.使用灯光主题。
Dark Mode深色模式Theme主题Use a dark theme.使用深色主题。
Enable Automatic Updates启用自动更新Privacy隐私Allow Compass to periodically check for new updates.允许Compass定期检查新的更新。
Enable Geographic Visualizations启用地理可视化Privacy隐私Allow Compass to make requests to third-party mapping services.允许Compass向第三方映射服务发出请求。
Enable Usage Statistics启用使用情况统计信息Privacy隐私Allow Compass to send anonymous usage statistics.允许Compass发送匿名使用统计信息。
Give Product Feedback提供产品反馈Privacy隐私Allow our Product team to occasionally reach out for feedback about Compass.允许产品团队偶尔联系有关Compass的反馈。

Learn More了解更多信息