上QQ阅读APP看书,第一时间看更新
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"] })