Export Saved Connections in Compass导出Compass中保存的连接
On this page本页内容
You can export saved connections in MongoDB Compass. 您可以在MongoDB Compass中导出保存的连接。Colleagues can import your saved connections, or you can use them in your other workspaces.同事可以导入您保存的连接,也可以在其他工作区中使用它们。
About This Task关于此任务
When you export saved connections, Compass exports the list of connections as a JSON file.导出保存的连接时,Compass会将连接列表导出为JSON文件。
By default, when you export saved connections, passwords are included in plaintext. 默认情况下,导出保存的连接时,密码包含在明文中。To protect sensitive connection information, encrypt the exported file with a passphrase.要保护敏感连接信息,请使用密码短语对导出的文件进行加密。
Procedure过程
To export encrypted saved connections with Compass:要使用Compass导出加密保存的连接,请执行以下操作:
On the Connect screen, hover over Saved Connections in the left-side navigation and click the Ellipses (...) button.在“连接”屏幕上,将鼠标悬停在左侧导航中的“保存的连接”上,然后单击省略号(…)按钮。
In the Export saved connections dialog box, select the connection names you want to export.在“导出保存的连接”对话框中,选择要导出的连接名称。
Under Target File, click Select a file... to specify the output file destination.在“目标文件”下,单击“选择文件…”以指定输出文件的目标。
Optional. 可选的。Toggle Remove secrets to omit passwords, access tokens, and other sensitive information from the exported file.切换“删除密钥”以从导出的文件中省略密码、访问令牌和其他敏感信息。
If you select Remove secrets, you cannot specify an encryption password.如果选择“删除密钥”,则无法指定加密密码。
Optional. 可选的。Specify an Encryption Password to encrypt passwords, access tokens, and other sensitive information.指定“加密密码”以加密密码、访问令牌和其他敏感信息。
If you do not encrypt the export file, passwords are exported in plaintext. 如果不加密导出文件,密码将以明文形式导出。Only export unencrypted connections if no other users will have access to the exported file.如果没有其他用户可以访问导出的文件,则仅导出未加密的连接。
Click Export to export your saved connections to a JSON file.单击“导出”将保存的连接导出到JSON文件。
Next Steps接下来的步骤
To learn how to import saved connections, see Import Saved Connections in Compass.要了解如何导入已保存的连接,请参阅在Compass中导入已保存连接。