Import connections
Bring in the connections you already have in Compass, in a mongosh command or in a file exported from Mongiq.
Mongiq can create connections from what you already use to reach your servers, through the More Actions menu on the welcome screen:
- Import from Compass… reads a connections file exported from MongoDB Compass. Password-protected files can't be read, so export the file again without protection.
- Paste mongosh Command… reads the URI and options of a
mongoshcommand, such asmongosh "mongodb://host:27017/db" --username user, and opens the connection dialog already filled in. - Import… reads a connections file exported from Mongiq with Export All…, Export… or Export Folder….
Passwords in a Compass export, for both the URI and the SSH tunnel, are moved to the system's secure storage. Files exported from Mongiq contain no passwords, so enter each one in the connection dialog. After the import, Mongiq lists anything in the file it doesn't use, and flags any authentication that needs more than the file provides so you can complete it in the connection dialog.
- On the welcome screen, open More Actions.
- Choose where to import the connections from.
- Choose the file, or paste the command.
- Review the imported connections and enter any passwords the file didn't include.