Setting Up Mongodb

Setting Up MongoDB

  • Login to mongodb, your password is on dashboard

$ mongo admin --username root --password YOUR_DB_PWD

  • Create new database name

use YOUR_DB_NAME

  • Create new User for that DB
db.createUser( { user: "YOUR_database_user", pwd: "YOUR_database_password", roles: [ "readWrite", "dbAdmin" ]} )