- Blockchain By Example
- Bellaj Badr Richard Horrocks Xun (Brian) Wu
- 58字
- 2021-06-10 18:53:49
Creating Iquidus's database
Enter the MongoDB cli using the command mongo:
> use explorerdb
Create a user with read/write access:
> db.createUser( { user: "iquidus", pwd: "3xp!0reR", roles: [ "readWrite" ] } )
Note: If you're using mongo shell 2.4.x, use the following to create your user:
> db.addUser( { user: "username", pwd: "password", roles: [ "readWrite"] })