Connect MongoDB with SSH tunnel using Compass

Overview Let’s say, you have a MongoDB database server in your private subnet, which means you can’t connect or access it publicly. In this case, you may need to connect to MongoDB database with the SSH tunnel using a Compass. … Read More

How to enable authentication in MongoDB Server?

By default, MongoDB has authentication disabled. So, after installing and starting the MongoDB you can directly access it with the following command: Now, let’s create a root (which is super) user so that we can manage our MongoDB database and … Read More

How to check MongoDb database size?

Sometimes we may need to check MongoDb database size and it is a handful to know. In this post, we will learn to check MongoDb database size. Answer: 5. We can see the database name zvls and the storageSize which … Read More

How to export MongoDB data into CSV file?

We may need to export MongoDB data into CSV from local server or remote server. Hence, in this post we can learn how to do it. Export MongoDB data into CSV from local server with given fields with header name: … Read More