Recently, some of our Customers informed us that they received an error 'MongoDB failed to load the list of databases' while trying to connect to a remote database using Robomongo.
This error can occur due to various reasons that include failed database user/password authentication, outdated Robo 3T version, and so on.
In this context, we shall look into how to fix this MongoDB error message.
How to fix the error 'MongoDB failed to load the list of databases' ?
Here, you will learn different ways to resolve this error message.
Here are the different ways to resolve the error.
1. We suggest upgrading the Robo 3T version.
In some of the cases that we saw, this error was fixed by just upgrading the Robo 3T version.
2. If there is any failure in the database user/password authentication then this error can occur. It means that the server IP connection might be successful but the database might have not connected.
So we need to re-check the database user/password.
For that, access Connection Settings >> Authentication – Provide Database name, username, password.
After that, we re-test the connection.
This must resolve the error.
3. If the user that we are trying to connect doesn’t have proper privileges to list the databases.
For Robomongo to list out the databases/collections, we must connect to our database using a user that has 'listDatabases' privileges.
So we need to set these privileges for the users.