Docs HomeMongoDB Compass

Export and Import Saved Connections导出和导入保存的连接

On this page本页内容

To quickly connect to a shared deployment, export and share your saved connections. 若要快速连接到共享部署,请导出并共享您保存的连接。Colleagues can import your saved connections, or you can use them yourself in your other workspaces. 同事可以导入您保存的连接,也可以在其他工作区中自己使用它们。You can manage saved connections in the Compass UI or with the Compass CLI.您可以在Compass UI中或使用Compass CLI管理保存的连接。

Important重要的

Export Contains Sensitive Information导出包含敏感信息

By default, when you export saved connections, passwords are included in plaintext. 默认情况下,导出保存的连接时,密码包含在明文中。To protect sensitive connection information, encrypt the exported file with a passphrase. 要保护敏感连接信息,请使用密码短语对导出的文件进行加密。When you do, users must specify the matching passphrase to import the connections.当您这样做时,用户必须指定匹配的密码短语来导入连接。

Tasks任务

To learn how to export and import saved connections in the Compass UI, see:要了解如何在Compass用户界面中导出和导入保存的连接,请参阅:

To learn how to export and import saved connections with the CLI, see:要了解如何使用CLI导出和导入保存的连接,请参阅: