

If you have only just started your server for the first time, you probably won’t have an “admin” database yet. users that can have access to all other databases on the server) need to be created in a special database “admin”. Here, simply enter the name or the IP address of your server, and then just click “Connect”. In Studio 3T, click the “Connect” icon in the toolbar and then choose “New Connection” in the Connection Manager. Now, let’s quickly connect to our MongoDB server. The main thing is that you start the server without authentication (i.e. Note that your data path, your port and other options may differ from this simple example. data/3.0.0 -storageEngine wiredTiger -port 27017 For the sake of simplicity, we’ll just start a single mongod instance using the new WiredTiger storage engine: Start your MongoDB server without user authenticationįrom your command line (on your server), start your MongoDB server. Since it won’t always be possible to connect to your MongoDB server via your localhost interface, we will use the first approach in this post and create the user administrator before we restart our MongoDB server with authentication. You can also always disable the local host exception by passing -setParameter enableLocalhostAuthBypass=0 to your server.

Note that the localhost exception is only active as long as no users have been created in your MongoDB instance.
#Create a user in robo 3t full#
This localhost exception grants you full access (i.e. Now connect to your MongoDB server from localhost.Start your MongoDB server with authentication enabled straight away.However, it requires localhost access to your server: This approach lets you run your MongoDB server with authentication right from the beginning. You can now connect to your server as that user administrator.Įnable user authentication right away and use the localhost exception Restart your MongoDB, this time with authentication enabled.Launch your MongoDB server without authentication.This straightforward approach requires the following steps: Enable user authentication after creating the user administrator For further reading, check out our guide for authentication in LDAP and Kerberos with the MongoDB Enterprise license.
