Afterwards, you can safely close the MongoDB Compass application. When you to stop the components after you are done working, click the connect menu in the menu bar and select disconnect to stop the connection to your MongoDB server. The admin, config, and local are default databases and you shouldn't delete them. As soon as you click connect, Compass connects to your local server and shows information about the databases within and allow you to manage your data using the graphical user interface. If you click connect without entering any connection string, mongo will just connect to the local database running with the default configurations.Ĭlick Connect to connect to the MongoDB server running on your machine. Once it is open, the initial screen will give you the opportunity to connect to a running MongoDB server by providing a connection string: The next step is to understand how to use MongoDB Compass (it is a very simple and straightforward process). Make sure your names for either do not include spacing or special characters as this will result in an error. Enter the name of your database and then the name of your first collection. If it doesn't open immediately, you can open it by just searching for it from your taskbar. On the home page of the MongoDB Compass dashboard, make sure the Databases tab is selected and then click Create Database. To copy the database cluster’s connection string, which tells the client how to connect to the cluster. To install MongoDB Compass on your local computer. Next, click Install to begin installing all of the MongoDB components on your computer.Īfter the installation is complete, MongoDB Compass will open automatically. Select the MongoDB view and youll see the MongoDB Explorer. To connect to MongoDB database clusters using MongoDB Compass, you need three things: To add your local computer to the database’s trusted sources. (Here we have to tick the checkbox to install MongoDB Compass since this tutorial was made for using MongoDB and Compass) For that, open Compass and connect with your local or remote database. Next, click the checkbox to to install MongoDB Compass, a graphical interface that you can use to connect to and manage MongoDB servers. You can create a new database using MongoDB Compass. Click Next when you are satisfied with your selections. Answer Type mongo in the Docker catalog search field: Click on Run button to automatically download and start MongoDB instance deployment: Disable Automatic. The default values should work well for most scenarios. Enter your collection name and select the collation or capped options if applicable. Select Create Collection on the top of the dashboard view. Read the end-user license agreements and make sure you click the checkbox to agree with the user terms so that you can proceed to the next page.Ĭlick on the complete button to install all MongoDB features and components. Select the linked name of the database you would like to create a collection in from the MongoDB Compass dashboard. Follow this link to visit the download page for the MongoDB Community Server and and download the latest MSI installer for Windows:Īs soon as the download completes double click the file and run the installer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |