SoulNode
Search…
MongoDB
How to setup your database servers
Video tutorial here
Be sure to change usernames/passwords
Creating a database
1
use newDataBase
2
3
db.new_collection.insert({ some_key: "some_value" })
4
5
db.createUser(
6
{
7
user: "username",
8
pwd: "aPassword01",
9
roles: [ { role: "readWrite", db: "newDataBase" } ]
10
}
11
)
Copied!
Deleting a database
1
db.dropDatabase()
Copied!
Copy link