1. install mongodb x.x
2. go to c: drive and create two folder
C:\data
C:\data\db
2. type mongo [ command prompt / use robo mongo ui ]
3. create user and db [type ]
use gcdr
db.createUser({user: "test",pwd: "test",roles: [ "readWrite", "dbAdmin" ] } )
4. db authenticate [type ]
db.auth ("test","test");
ENJOY
2. go to c: drive and create two folder
C:\data
C:\data\db
2. type mongo [ command prompt / use robo mongo ui ]
3. create user and db [type ]
use gcdr
db.createUser({user: "test",pwd: "test",roles: [ "readWrite", "dbAdmin" ] } )
4. db authenticate [type ]
db.auth ("test","test");
ENJOY
No comments:
Post a Comment