How do I use the MongoDB server?

You must first request a database on the MongoDB server. You can do so by emailing ecst@bucknell.edu and explaining a little bit about your project. You will be provided with a username and password that you’ll then use to connect to your MongoDB database.

Here is the primary information you’ll need when connecting to your database:

  • MongoDB Version: The MongoDB server is running version 3.x. You’ll need a client that supports the newer authentication mechanism in version 3. For example, if you’re using the mongo shell, you’ll need version >= 3.0.
  • Server: eg-mongodb.bucknell.edu
  • Username: This will be provided to you when your database is created.
  • Password: This will be provided to you when your database is created.

Here’s an example using the mongo shell:

mongo --host eg-mongodb.bucknell.edu  -u username -p --authenticationDatabase databasename databasename

Details

Article ID: 276
Created
Fri 1/31/20 2:54 PM
Modified
Fri 2/28/20 9:53 AM