In the ‘Favorite Name’ field, fill in the name to refer to the server that you are connecting to. To do this, fill in all the necessary fields but do not click ‘Connect’. If you plan on often connecting to the MongoDB, you can make a favorite so that you do not have to fill in the fields every time you wish to connect to the server. This does NOT connect to the MongoDB port but rather the SSH port. Once these fields are filled in, click ‘Connect’.įor context, the SSH Tunnel first connects into the server through SSH then connects to the MongoDB server locally. Server login password in the ‘SSH Password’ field.Server login username in the ‘SSH Username’ field.Domain (or IP Address) of the server in the ‘SSH Hostname’ field.If you are connecting to a remote server, under the SSH Tunnel field, select ‘Use Password’. If you are connecting to a MongoDB instance running on the same computer as the one accessing it, then no other fields have to be specified. To connect to a new server, click ‘New Connection’ on the left side of the interface. This way, hostname, port, authentication, and replica set name do not have to be specified. Unless specified, most HarkerDev projects run on the default ports. MongoDB Compass runs as an application on your computer, so once you download it, open it (and move it to the Applications folder if applicable). Using MongoDB Compass Opening MongoDB Compass Then, install MongoDB Compass on the device you are using to connect. This setup is detailed in our guide on Setting Up a Server. Installing MongoDB Compass MongoDBįirst, make sure that mongodb is installed and running mongod on the device you wish to connect to. This guide will explain how to use MongoDB’s GUI to access the database directly. HarkerDev projects often (if not always) use MongoDB as the main database system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |