Save the connection, then double click on it, and you will see your database.Ĭonnecting to a MongoDB Replica Set DeploymentĪll of our Shared plan users are started on replica sets by default, though most production workloads are deployed on (Dedicated or BYOC) replica sets.Ĭonnecting your ScaleGrid MongoDB replica set to Robo 3T is similar to connecting a standalone deployment. Robo 3T should be able to connect successfully. You are now set! Click on 'Test' to test the connection. By default, ScaleGrid provides self-signed certificates, however you have the option to bring your own SSL certificates or ask us to buy them on your behalf: If SSL is enabled on your MongoDB cluster, then additional configuration is required on the SSL tab which can be setup as shown below. Then, enter your user credentials in the remaining fields: In the Authentication tab, enter the Database as 'admin' (or whatever database you have created your MongoDB user on). In the Connection tab, select Direct Connection as the 'Type', give the connection a name, and enter the server name and port picked from the Connection String found in your ScaleGrid MongoDB cluster details page in the 'Address' and 'Port' fields: Launch Robo 3T and open the 'Manage Connections' window:Ĭlick on 'Create' to setup a new connection. Connection String: mongodb://admin: Server Name:.Here's an example of how to identify your server name and port from your Connection String: You will need the database server name and port to start, which can be found in your Connection String on your MongoDB cluster details page in the console: Our BYOC and Dedicated plan users often start with a standalone MongoDB deployment during their free 30-day trial before moving on to replica sets for development and production environments. Connecting to a Standalone MongoDB Deployment With the prerequisites in place, we can now go to the Robo 3T GUI to continue to connect to our database deployment. For this example, I will create a new user who has read-write access to any database on the cluster: You can also use the ScaleGrid web-shell available on the Admin tab to create such users. In order to create simple, per-database, read-write or read-only users, log into the ScaleGrid console, navigate to the cluster details page, and click on the Databases tab:Ĭlick on the Manage button beside the database you want to create the user on, and then select the Users tab:įor creating users with more advanced roles and permissions, refer to the MongoDB Add Users tutorial, MongoDB roles guide or our guide to MongoDB RBAC. The roles that you choose to assign to the user will depend on your exact use-case. Instead, create a new user with appropriate permissions for client access. We do not recommend connecting to your MongoDB deployment using the "admin" user that ScaleGrid provides by default. The latest version of Robo 3T at the time of writing this is 1.2, which supports MongoDB versions up to 3.4. It's very important to check your ScaleGrid deployment to ensure you install the Robo 3T version that supports the deployment's current MongoDB version, and you can check this link for more information on Robo 3T's supported platforms.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |