@@ -30,11 +30,7 @@ Add fh-db as a dependency to your module and require it where required, like any
3030### Start Mongo Server
3131Start the docker machine for the version of mongo you wish to test:
3232``` bash
33- docker run -d -p 27017:27017 mongo:2.4
34- # or (preferred)
3533docker run -d -p 27017:27017 mongo:2.6
36- # or
37- ...
3834```
3935
4036### Note for docker-machine users
@@ -56,8 +52,9 @@ connect to Mongo:
5652mongo
5753```
5854
59- #### For versions > 3.x
60- You will need to update the authentication to work with fh-db, which is done as follows:
55+ #### For MongoDB versions > 3.x
56+ Well, instead of MongoDB 2.6 stated above if you used MongoDB 3.x, you will need to update the authentication
57+ to work with fh-db, which is done as follows:
6158```
6259use admin
6360db.system.users.remove({})
7774```
7875
7976#### Add the admin user:
80- ##### 2.4.x
81- ```
82- use admin
83- db.addUser('admin', 'admin');
84- ```
85- ##### >= 2.6
77+
8678```
8779use admin
8880db.createUser({user: 'admin', pwd: 'admin', roles: ['root']})
@@ -97,13 +89,7 @@ mongo admin -u admin -p admin
9789#### Add the ditchuser
9890
9991Log in as the admin user, if you are not yet, then run:
100- ##### 2.4.x
101- ```
102- use fh-ditch
103- db.addUser('ditchuser', 'ditchpassword');
104- ```
10592
106- ##### >= 2.6
10793```
10894use fh-ditch
10995db.createUser({user: 'ditchuser', pwd: 'ditchpassword', roles: ['dbAdmin']})
0 commit comments